comparison mcabber/src/screen.c @ 369:499170ed71c9

Rename some buffer commands, for homogeneity
author Mikael Berthe <mikael@lilotux.net>
date Sun, 24 Jul 2005 22:31:31 +0100
parents ddb6593bedc9
children dd9e2eb52916
comparison
equal deleted inserted replaced
368:da50f08ea058 369:499170ed71c9
907 set_current_buddy(alternate_buddy); 907 set_current_buddy(alternate_buddy);
908 if (chatmode) 908 if (chatmode)
909 scr_ShowBuddyWindow(); 909 scr_ShowBuddyWindow();
910 } 910 }
911 911
912 // scr_ScrollUpDown() 912 // scr_BufferScrollUpDown()
913 // Scroll up/down the current buddy window, half a screen. 913 // Scroll up/down the current buddy window, half a screen.
914 // (up if updown == -1, down if updown == 1) 914 // (up if updown == -1, down if updown == 1)
915 void scr_ScrollUpDown(int updown) 915 void scr_BufferScrollUpDown(int updown)
916 { 916 {
917 window_entry_t *win_entry; 917 window_entry_t *win_entry;
918 int n, nblines; 918 int n, nblines;
919 GList *hbuf_top; 919 GList *hbuf_top;
920 920
955 // Finished :) 955 // Finished :)
956 update_panels(); 956 update_panels();
957 doupdate(); 957 doupdate();
958 } 958 }
959 959
960 // scr_Clear() 960 // scr_BufferClear()
961 // Clear the current buddy window (used for the /clear command) 961 // Clear the current buddy window (used for the /clear command)
962 void scr_Clear(void) 962 void scr_BufferClear(void)
963 { 963 {
964 window_entry_t *win_entry; 964 window_entry_t *win_entry;
965 965
966 // Get win_entry 966 // Get win_entry
967 if (!current_buddy) return; 967 if (!current_buddy) return;
1530 case KEY_EOL: 1530 case KEY_EOL:
1531 case 11: // Ctrl-k 1531 case 11: // Ctrl-k
1532 *ptr_inputline = 0; 1532 *ptr_inputline = 0;
1533 break; 1533 break;
1534 case 16: // Ctrl-p 1534 case 16: // Ctrl-p
1535 scr_ScrollUpDown(-1); 1535 scr_BufferScrollUpDown(-1);
1536 break; 1536 break;
1537 case 14: // Ctrl-n 1537 case 14: // Ctrl-n
1538 scr_ScrollUpDown(1); 1538 scr_BufferScrollUpDown(1);
1539 break; 1539 break;
1540 case 17: // Ctrl-q 1540 case 17: // Ctrl-q
1541 scr_CheckAutoAway(TRUE); 1541 scr_CheckAutoAway(TRUE);
1542 scr_RosterUnreadMessage(1); // next unread message 1542 scr_RosterUnreadMessage(1); // next unread message
1543 break; 1543 break;