35 #include "network/rconsession.h" |
35 #include "network/rconsession.h" |
36 #include "network/ipaddress.h" |
36 #include "network/ipaddress.h" |
37 #include "coloredline.h" |
37 #include "coloredline.h" |
38 BEGIN_ZFC_NAMESPACE |
38 BEGIN_ZFC_NAMESPACE |
39 |
39 |
40 static const int g_pageSize = 10; |
40 static const int PAGE_SIZE = 10; |
41 |
41 |
42 // ------------------------------------------------------------------------------------------------- |
42 // ------------------------------------------------------------------------------------------------- |
43 // |
43 // |
44 chtype Interface::color_pair (Color fg, Color bg) |
44 chtype Interface::color_pair (Color fg, Color bg) |
45 { |
45 { |
742 m_needInputRender = true; |
742 m_needInputRender = true; |
743 } |
743 } |
744 break; |
744 break; |
745 |
745 |
746 case KEY_PPAGE: |
746 case KEY_PPAGE: |
747 m_outputScroll += min (g_pageSize, LINES / 2); |
747 m_outputScroll += min (PAGE_SIZE, LINES / 2); |
748 m_needOutputRender = true; |
748 m_needOutputRender = true; |
749 break; |
749 break; |
750 |
750 |
751 case KEY_NPAGE: |
751 case KEY_NPAGE: |
752 m_outputScroll -= min (g_pageSize, LINES / 2); |
752 m_outputScroll -= min (PAGE_SIZE, LINES / 2); |
753 m_needOutputRender = true; |
753 m_needOutputRender = true; |
754 break; |
754 break; |
755 |
755 |
756 case 'U' - 'A' + 1: // readline ^U - delete from start to cursor |
756 case 'U' - 'A' + 1: // readline ^U - delete from start to cursor |
757 if (m_cursorPosition > 0) |
757 if (m_cursorPosition > 0) |