Text Editor E01 - How to use ANSI Escape Codes & Call Native APIs with Java

Опубликовано: 06 Сентябрь 2022
на канале: Marco Codes
14,208
387

Have you ever wanted to know how text editors work? How shell scripts change terminal text colors, update lines without scrolling, or move the cursor around?
Surprise, surprise, even as Java Devs, we can do this! In this series, l'll walk you through building a terminal-based text editor with Java.
Part 1: How to use ANSI escape codes and native C text input libraries to do fancy text output with Java. Let’s get started!

► Source Repository
https://github.com/marcobehlerjetbrai... - Branch: Episode 1

► Timestamps
00:00 Intro
00:54 Project Notes
01:14 ANSI Escape Codes
06:04 Terminal Raw Mode
07:30 Setting Terminal Attributes With The Termios API
20:39 Building The Text Viewer Skeleton
24:58 Getting Terminal Rows & Columns With The IOCTL API
27:39 Bugfixing: Flickering & Cursor Positioning
28:51 Teaser
29:15 The End

► Acknowledgements

A BIG thank you goes out to:

Paige Ruten - https://viewsourcecode.org/snaptoken/
antirez - http://antirez.com/news/108

► FOLLOW ME

  / marcobehler  
https://www.marcobehler.com