Commit Graph

27 Commits

Author SHA1 Message Date
Timothy Warren 44a1d5ce9a Be more robust in restoring canonical mode 2019-10-04 15:53:08 -04:00
Timothy Warren 8825cdb058 Gracefully handle opening an empty file 2019-10-04 15:49:45 -04:00
Timothy Warren c3dee47b46 Minor code cleanup 2019-09-19 16:45:48 -04:00
Timothy Warren a94368c965 Minor code cleanup, make get_cursor_position actually work correctly 2019-09-19 12:19:20 -04:00
Timothy Warren f8700c8e93 Treat ctrl+letter chords as their own character class 2019-09-17 11:19:46 -04:00
Timothy Warren 6497111427 Only call editor::refresh_screen on a key press 2019-09-17 10:34:17 -04:00
Timothy Warren b9dee69522 Cargo fmt and use STDOUT_FILENO for getting Termios 2019-09-13 16:34:31 -04:00
Timothy Warren f955e22c19 Implement missing function, fix some math issues between cursor_x and render_x 2019-09-12 16:49:49 -04:00
Timothy Warren cec958932c Misc tweaks, add Javascript highlighting 2019-09-10 16:47:15 -04:00
Timothy Warren e720de0eb8 Another ugly progress commit 2019-09-06 16:40:31 -04:00
Timothy Warren e6d3995e4c Ugly progress commit 2019-09-06 13:24:29 -04:00
Timothy Warren f25252a39e Create language syntax struct, and select highlighting by file extension 2019-09-04 15:41:06 -04:00
Timothy Warren dcd0c3bec1 Find with callback 2019-09-03 16:19:19 -04:00
Timothy Warren dd9166d465 Add Save As prompt 2019-08-30 16:17:06 -04:00
Timothy Warren 8e125b8c7c Basic backspacing 2019-08-30 11:20:52 -04:00
Timothy Warren 0c81912cac Complete chapter 4 2019-08-29 14:13:09 -04:00
Timothy Warren c1c87429fb Vertical scrolling, and improved escape code matching 2019-08-27 17:38:05 -04:00
Timothy Warren 4167088f81 Open a file and display the first line 2019-08-27 12:22:19 -04:00
Timothy Warren 761e55236b Rough progress commit, chapter 3 with cursor issues 2019-08-26 16:39:52 -04:00
Timothy Warren 04369ca796 Fill the screen with tilde lines 2019-08-23 16:46:04 -04:00
Timothy Warren 40477ec7ca Another ugly commit, tweak handling of input 2019-08-23 14:57:26 -04:00
Timothy Warren f08f5f3cae Properly take in input and control characters 2019-08-23 13:34:00 -04:00
Timothy Warren 144fd65412 really ugly progress commit 2019-08-22 16:44:47 -04:00
Timothy Warren 6c967fe499 Ugly progress commit 2019-08-22 14:25:18 -04:00
Timothy Warren 2d5db77ce4 File descriptor constants 2019-08-21 16:51:45 -04:00
Timothy Warren e3e187d442 First hint of raw mode 2019-08-21 16:46:14 -04:00
Timothy Warren 45fabec0e4 First commit 2019-08-21 14:39:17 -04:00