Tex generation bug fixed (^(-1) cases) and add of a 'clear screen' like command (shift + del))

This commit is contained in:
Nemh 2015-06-06 20:17:01 +02:00
parent b2b9f343b4
commit ead16b3c62
2 changed files with 10 additions and 12 deletions

View File

@ -617,16 +617,10 @@ int Console_GetKey()
return CONSOLE_SUCCEEDED;
}
/*if (key == KEY_CTRL_INS) {
if (!Line[Current_Line].readonly) {
Edit_Line[0] = '\0';
Line[Current_Line].start_col = 0;
Line[Current_Line].type = LINE_TYPE_INPUT;
Line[Current_Line].disp_len = 0;
Cursor.x = 0;
}
return Console_Init();
}*/
if (key == KEY_CTRL_INS) {
Start_Line = Current_Line;
Cursor.y = 0;
}
if (key == KEY_CTRL_SETUP) {
menu_setup();

View File

@ -437,15 +437,19 @@ print_factor(U *p)
if (isminusone(caddr(p))) {
if (test_flag == 0)
print_str("1 / ");
else
if(tex_flag) print_str("\\frac{1}{");
else print_str("1 / ");
else {
print_str("1/");
}
if (iscons(cadr(p))) {
print_str("(");
print_expr(cadr(p));
print_str(")");
} else
print_expr(cadr(p));
if(tex_flag) print_str("}");
return;
}