Commit 2f19b0c
Add Arrow Up/Down feature to navigate Command History and Left/Right Arrow to edit command (#136)
* Add command history navigation in user interface
Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
* Fix CommandReader and StdinEventHandler tests
Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
* Fix Windows compilation
Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
* Change getchar() in windows to _getch()
Signed-off-by: Denisa <denisa.alexandru@alumnos.upm.es>
* Remove tests from windows
Signed-off-by: Denisa <denisa@eprosima.com>
* Fix uncrustify
Signed-off-by: Denisa <denisa@eprosima.com>
* Fix storing characters during echo command and fix multiple lines visula bug
Signed-off-by: Denisa <denisa@eprosima.com>
* Add Left/Right Arrow functionality
Signed-off-by: Denisa <denisa@eprosima.com>
* Fix uncrustify
Signed-off-by: Denisa <denisa@eprosima.com>
* Add missing briefs
Signed-off-by: Denisa <denisa@eprosima.com>
* remove commented lines
Signed-off-by: Denisa <denisa@eprosima.com>
* Force ANSI enabling in windows
Signed-off-by: Denisa <denisa@eprosima.com>
* Add function to enale ansi characters in utils.cpp
Signed-off-by: Denisa <denisa@eprosima.com>
* Fix uncrustify
Signed-off-by: Denisa <denisa@eprosima.com>
---------
Signed-off-by: Lucia Echevarria <luciaechevarria@eprosima.com>
Signed-off-by: Denisa <denisa.alexandru@alumnos.upm.es>
Signed-off-by: Denisa <denisa@eprosima.com>
Co-authored-by: Lucia Echevarria <luciaechevarria@eprosima.com>1 parent cbb276e commit 2f19b0c
11 files changed
Lines changed: 734 additions & 50 deletions
File tree
- cpp_utils
- include/cpp_utils
- event
- history
- user_interface
- src/cpp
- event
- history
- test/unittest
- event/stdin_event
- user_interface
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
84 | 100 | | |
85 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
86 | 114 | | |
87 | 115 | | |
88 | 116 | | |
| |||
120 | 148 | | |
121 | 149 | | |
122 | 150 | | |
| 151 | + | |
| 152 | + | |
123 | 153 | | |
124 | 154 | | |
125 | 155 | | |
| |||
131 | 161 | | |
132 | 162 | | |
133 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
134 | 170 | | |
135 | 171 | | |
136 | 172 | | |
| |||
Lines changed: 57 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
111 | 119 | | |
112 | 120 | | |
113 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
85 | 93 | | |
86 | 94 | | |
87 | 95 | | |
| |||
0 commit comments