IntelliJ IDEA Guide
Tips
Tutorials
Playlists
Technologies
Topics
About
Get IntelliJ IDEA
Up to Marco Codes - Building a Text Editor
Previous
6 of 16
Marco Codes - Building a Text Editor
Introduction & ANSI Escape Codes
Terminal Raw Mode & Terminal Attributes
Building The Text Viewer Skeleton
Getting Terminal Rows & Columns With The IOCTL API
Bugfixing Flickering & Cursor Positioning
The Problem with Arrow Up & Down and Key Mappings
How to Move your Cursor
How to Load and Display Text Files
Some Refactoring and Scrolling
Page Up and Page Down
Horizontal Scrolling
End Key
Cursor Snapping
Cursor Line Wrapping
MacOS and Windows Support
Summary
Next
The Problem with Arrow Up & Down and Key Mappings
Arrow motion & How to map 3 or 4 keys to 1
Arrow Key Handling
What actually happens when you press Arrow Up/Down/Left/Right
How to handle complex keypress sequences in the application
How to map three or four key presses to one
Bugfixing Flickering & Cursor Positioning
How to Move your Cursor