|
|
| version 1.30, 2025/05/20 16:20:42 | version 1.32, 2026/03/19 19:03:58 |
|---|---|
| Line 24 | Line 24 |
| * along with FreeM. If not, see <https://www.gnu.org/licenses/>. | * along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
| * | * |
| * $Log$ | * $Log$ |
| * Revision 1.32 2026/03/19 19:03:58 snw | |
| * Attempt to rectify terminal corruption problem when the user performs a gracious exit | |
| * | |
| * Revision 1.31 2025/05/20 18:07:41 snw | |
| * Add completion to debugger | |
| * | |
| * Revision 1.30 2025/05/20 16:20:42 snw | * Revision 1.30 2025/05/20 16:20:42 snw |
| * Update ROUTINE SSVN after ZEDIT and ZSAVE | * Update ROUTINE SSVN after ZEDIT and ZSAVE |
| * | * |
| Line 328 char **command_completion(const char *te | Line 334 char **command_completion(const char *te |
| { | { |
| if (start > 0) return NULL; | if (start > 0) return NULL; |
| rl_attempted_completion_over = 1; | rl_attempted_completion_over = 1; |
| return rl_completion_matches(text, command_generator); | return rl_completion_matches (text, command_generator); |
| } | } |
| char *command_generator(const char *text, int state) | char *command_generator(const char *text, int state) |
| Line 338 char *command_generator(const char *text | Line 344 char *command_generator(const char *text |
| if (!state) { | if (!state) { |
| list_index = 0; | list_index = 0; |
| len = strlen(text); | len = strlen (text); |
| } | } |
| while ((name = m_commands[list_index++])) { | while ((name = m_commands[list_index++])) { |
| if (strncmp(name, text, len) == 0) { | if (strncmp (name, text, len) == 0) { |
| return strdup(name); | return strdup (name); |
| } | } |
| } | } |
| Line 5150 halt: | Line 5156 halt: |
| i = 0; | i = 0; |
| } | } |
| set_io (UNIX); | |
| cleanup (); | cleanup (); |
| if (father) { /* advertise death to parent *//* make sure father is waiting !!! */ | if (father) { /* advertise death to parent *//* make sure father is waiting !!! */ |