Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([lbbs],[1.7.5])
AC_INIT([lbbs],[1.7.6])
AC_CONFIG_SRCDIR([src/])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIRS([m4])
Expand Down
12 changes: 12 additions & 0 deletions src/screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ static int _str_input(char *buffer, int buf_size, int max_display_len, enum io_e
{
continue;
}
else if (ch == KEY_ESC)
{
buffer[0] = '\0';
offset = 0;
break;
}
else if (ch == BACKSPACE || ch == KEY_DEL)
{
if (offset > 0)
Expand Down Expand Up @@ -345,6 +351,12 @@ int get_data(int row, int col, char *prompt, char *buffer, int buf_size, int max
{
continue;
}
else if (ch == KEY_ESC)
{
buffer[0] = '\0';
len = 0;
break;
}
else if (ch == BACKSPACE)
{
if (offset > 0)
Expand Down
1 change: 1 addition & 0 deletions src/user_list_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ int user_list_search(void)
moveto(3, 1);
clrtoeol();
prints("用户名格式非法");
press_any_key();
continue;
}

Expand Down