-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## Move cursure to top-left position | ||
|
||
``` | ||
The H command actually takes two arguments: the row number and the column number at which to position the cursor. | ||
``` | ||
|
||
- `\x1b[H` | ||
|
||
The H command actually takes two arguments: the row number and the column number at which to position the cursor. | ||
|
||
The default arguments for H both happen to be 1, | ||
so we can leave both arguments out and it will position the cursor at the first row and first column, | ||
as if we had sent the `<esc>[1;1H` command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
## Clear and reposition the cursor | ||
|
||
```sh | ||
tcgetattr: Inappropriate ioctl for device | ||
|
||
~ main* | ||
❯ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters