-
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.
Modify
ls
output to be unformatted on redirect.
`ls` now outputs unformatted, line-separated when redirecting. This aligns closer with how typical linux systems do it. Additionally, the `clear` command now sends a special escape sequence that tells the terminal to clear the history. This is a bit better than the original solution, which had no implementation for `clear`, but instead searched for whether the input contained the word "clear".
- Loading branch information
1 parent
5285660
commit 7ee035a
Showing
3 changed files
with
20 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
export const CONSTANTS = { | ||
server: 'pearterm', | ||
defaultTheme: 'default', | ||
shellVersion: '0.0.1-alpha' | ||
SERVER: 'pearterm', | ||
DEFAULT_THEME: 'default', | ||
SHELL_VERSION: '0.0.1-alpha', | ||
ESCAPE_CODES: { | ||
RESET_TERM: '\\ec' | ||
} | ||
} |
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