Discover Your Terminal Mode using Java FFM (Foreign Function and Memory API)

By Salathiel G. at 28 Apr 2024

Discover your terminal mode and size using Java Foreign Function and Memory API (FFM). In this article we will be calling functions from the termios library, available on your operating system. We will be using FFM to call one of those functions, passing it primitive and object as parameters, then getting return values and modifications that C-written function did to the object we passed in.