|
SST 16.0.0
Structural Simulation Toolkit
|
The command line editor uses termios to detect key presses and perform auto-completions. More...
#include <cmdLineEditor.h>
Public Types | |
| enum | TAB_STATE { FILL_COMMON , LIST_COMMON } |
Data Fields | |
| const std::string | arrow_up = "[A" |
| const std::string | arrow_dn = "[B" |
| const std::string | arrow_rt = "[C" |
| const std::string | arrow_lf = "[D" |
| const std::map< std::string, std::string > | arrowKeyMap |
| const std::string | clear_line_ctl = "\x1B[2K" |
| const std::string | move_left_ctl = "\x1B[1D" |
| const std::string | move_right_ctl = "\x1B[1C" |
| const std::string | esc_ctl = "\x1B[" |
| const std::string | move_up_ctl = "\x1B[1F" |
| const std::string | prompt = "> " |
| const std::string | prompt_clear = "\x1B[2K\r> " |
| std::ofstream | dbgFile |
The command line editor uses termios to detect key presses and perform auto-completions.
Upon entering the editor, the current terminal settings are saved and we enter a "raw" terminal mode. While in raw terminal mode it is critical to ensure that exclusivel use read and write commands for std:out access. Mixing iostream access can corrupt the buffers.
| const std::map<std::string, std::string> CmdLineEditor::arrowKeyMap |