From ce4c09c1437875b94a9ca3a46b415f1a2e3a3f2f Mon Sep 17 00:00:00 2001 From: rakshasa Date: Tue, 15 Feb 2005 01:00:53 +0000 Subject: [PATCH] Various minor fixes to the 0.0.1 release. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@277 e378c898-3ddf-0310-93e7-cc216c733640 --- README | 40 ++++++++++++++++++++++++++++++++++++++++ src/Makefile.am | 1 + src/input/text_input.cc | 6 +++--- 3 files changed, 44 insertions(+), 3 deletions(-) diff --git a/README b/README index e69de29b..11b40a65 100644 --- a/README +++ b/README @@ -0,0 +1,40 @@ +All: + + Ctrl-C - Quit + + A - Increase Throttle by 1 KiB + Z - Decrease Throttle by 1 KiB + + S - Increase Throttle by 5 KiB + X - Decrease Throttle by 5 KiB + + D - Increase Throttle by 50 KiB + C - Decrease Throttle by 50 KiB + +In main window: + + Backspace - Activate text input for inserting urls/file + paths. Arrows/C^f/C^b for navigation, enter/C^m. + + Up/Down - Select torrent. + + Right - View torrent. + + +In torrent view: + + Up/Down - Select peer. + + Left - Back to main. + + Right - View peer. + + 1 - Decrease max uploads + 2 - Increase max uploads + + 3 - Decrease min peers connected + 4 - Increase min peers connected + + 5 - Decrease max peers connected + 6 - Increase max peers connected + diff --git a/src/Makefile.am b/src/Makefile.am index 2404e006..652eb44b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -13,6 +13,7 @@ rtorrent_LDADD = \ $(top_srcdir)/src/input/libsub_input.a rtorrent_SOURCES = \ + functional.h \ main.cc \ parse.cc \ parse.h \ diff --git a/src/input/text_input.cc b/src/input/text_input.cc index 1e24b72e..8e0f2ad3 100644 --- a/src/input/text_input.cc +++ b/src/input/text_input.cc @@ -9,7 +9,7 @@ namespace input { bool TextInput::pressed(int key) { -// std::stringstream str; + //std::stringstream str; if (m_alt) { m_alt = false; @@ -44,15 +44,15 @@ TextInput::pressed(int key) { break; + case 0x02: case KEY_LEFT: - case 0x10: if (m_pos != 0) --m_pos; break; + case 0x06: case KEY_RIGHT: - case 0x0E: if (m_pos != size()) ++m_pos;