Mercurial > hg
comparison mcabber/src/screen.c @ 129:03be1cc94560
[/trunk] Changeset 142 by mikael
* Do not enter chat mode when a command is entered.
author | mikael |
---|---|
date | Thu, 28 Apr 2005 12:22:34 +0000 |
parents | d3ee9abe9ca6 |
children | a27b22e3b3a1 |
comparison
equal
deleted
inserted
replaced
128:81ccb1091dd8 | 129:03be1cc94560 |
---|---|
787 | 787 |
788 update_panels(); | 788 update_panels(); |
789 doupdate(); | 789 doupdate(); |
790 } | 790 } |
791 | 791 |
792 inline void scr_set_chatmode(int enable) | |
793 { | |
794 chatmode = enable; | |
795 } | |
796 | |
792 // which_row() | 797 // which_row() |
793 // Tells which row our cursor is in, in the command line. | 798 // Tells which row our cursor is in, in the command line. |
794 // -1 -> normal text | 799 // -1 -> normal text |
795 // 0 -> command | 800 // 0 -> command |
796 // 1 -> parameter 1 (etc.) | 801 // 1 -> parameter 1 (etc.) |
980 case 9: // Tab | 985 case 9: // Tab |
981 scr_handle_tab(); | 986 scr_handle_tab(); |
982 check_offset(0); | 987 check_offset(0); |
983 break; | 988 break; |
984 case '\n': // Enter | 989 case '\n': // Enter |
985 chatmode = TRUE; | |
986 if (current_buddy) | |
987 buddy_setflags(BUDDATA(current_buddy), ROSTER_FLAG_LOCK, TRUE); | |
988 if (inputLine[0] == 0) { | |
989 scr_ShowBuddyWindow(); | |
990 break; | |
991 } | |
992 if (process_line(inputLine)) | 990 if (process_line(inputLine)) |
993 return 255; | 991 return 255; |
994 ptr_inputline = inputLine; | 992 ptr_inputline = inputLine; |
995 *ptr_inputline = 0; | 993 *ptr_inputline = 0; |
996 inputline_offset = 0; | 994 inputline_offset = 0; |