Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • elbows/mw
  • crox/mw
  • ripp_/mw
  • milliways/mw
  • kris/mw
5 results
Show changes
Commits on Source (2)
......@@ -79,6 +79,7 @@ int saved_history;
int current_rights = 0;
char clear_line[]="\033[M\r";
char up_line[] = "\033[1A";
static struct user mwuser;
struct user * const user = &mwuser;
......@@ -184,6 +185,13 @@ int disable_rl(int savetext)
static void accept_line(char *line)
{
int chars = strlen(rl_prompt)+rl_end;
int lines = chars/screen_w() + (chars%screen_w() != 0); //Divide chars by screen width rounding up
for(int i=0;i<lines;i++){
write(1, up_line,strlen(up_line));
write(1, clear_line, strlen(clear_line));
}
int conversion_result;
if (line == NULL)
{
......