Skip to content

About

Multi-tool console application / fantasy text-mode operating system

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

40 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ GitHub last commit

term-temple 💻

Term Temple is a multi-tool console application / fantasy text-mode operating system.

Terminal printing is made with the curses library (ncursesw for wide character support).

It is graphically inspired by TempleOS. I'm learning modern C++ while making this project.

Usage

You will need a color enabled terminal.

Currently suggested font is square font.

~145x70 is a good terminal resolution for now (current background ANSI is quite large).

Font used for the screenshot is Px AmstradPC1512 Regular from the "Old School PC Font Ressource" website:

Old School PC Font Ressource

Amstrad font preview

Old School PC Font Download

Other useful fonts:

Nerd Fonts

Install libncursesw5-dev ou juste libncurses-dev. Depuis 'src/' :

>make  
>./term-temple && stty sane && clear

Screenshots 📷

Screenshot of Term Temple console application by darokin Screenshot of Term Temple console application by darokin Screenshot of Term Temple console application by darokin

Project

All the main curses calls (wmove() + wmaddnwstr()) are made in renderer.cpp. Renderer.cpp is made as a pass through to facilitate the migration to some other text mode (or graphical) library.

cursesANSI.cpp is the exception and along the basic ANSI art parser, there are few drawing calls that are made straight from curses library.

The goal of the project is to make a simple window manager, with a few tools inside (clock, text file reader, ANSI art reader, calculator etc.) so it feels like a text-mode pseudo operating system.

NCurses library is not made to intensive graphics / working in realtime, the way the WINDOW object are redrawn etc. 💔

So the trick is to use 0 capabilities of Curses (WINDOW or other lib (menu etc.)) to handle manually the rendering and using only the 'stdscr' WINDOW object Curses expose to draw everything.

About

Multi-tool console application / fantasy text-mode operating system

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages