1195 |
break; |
break; |
1196 |
case 'D': /* ECMA-48 <CUB>. */ |
case 'D': /* ECMA-48 <CUB>. */ |
1197 |
/* Cursor left: <cub>, <cub1>. */ |
/* Cursor left: <cub>, <cub1>. */ |
1198 |
|
if (!parse->params[0] && user->cursor.col == 0) |
1199 |
|
{ |
1200 |
|
/* This implements the <bw> functionality. */ |
1201 |
|
user->cursor.row--; |
1202 |
|
user->cursor.col = user->screen.width; |
1203 |
|
} |
1204 |
user->cursor.col -= (parse->params[0] ?: 1); |
user->cursor.col -= (parse->params[0] ?: 1); |
1205 |
limit_cursor (display); |
limit_cursor (display); |
1206 |
break; |
break; |