Skip to content

Commit

Permalink
Improve main() Edlis
Browse files Browse the repository at this point in the history
  • Loading branch information
sasagawa888 committed Aug 14, 2024
1 parent 7fe9ff1 commit 1b2f917
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions edlis.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ int ed_scroll;
int ed_footer;
int ed_middle;
int ed_row;
int ed_col; //position of buffer
int ed_col1; //position of terminal when include unicode ed_col1 is different from ed_col
int ed_col; //position of buffer
int ed_col1; //position of terminal when include unicode ed_col1 is different from ed_col
int ed_start;
int ed_end;
bool ed_ins = true;
Expand Down Expand Up @@ -72,11 +72,11 @@ int main(int argc, char *argv[])
{
int i, j;

/* to enable CTRL('S') */
if (system("stty -ixon") == -1) {
printf("terminal error\n");
return (0);
}
timeout(0);

setlocale(LC_ALL, "");
if (argc == 2)
Expand All @@ -102,10 +102,10 @@ int main(int argc, char *argv[])
ed_row = ed_col = ed_col1 = 0;
edit_screen();
CHECK(endwin);
/* restore CTRL('S') */
if (system("stty ixon") == -1) {
printf("terminal error\n");
}
timeout(-1);
}

int getch1(void)
Expand Down

0 comments on commit 1b2f917

Please sign in to comment.