In today’s cpp::daily I’ll give you a hint of a nostalgic text editor!!!
A long time ago I tried to learn C++ and the editor I was referred to was Turbo Vision and that in Windows XP 😛 !!!
I didn’t succeed in studying at that time, but I noticed that Turbo Vision was the darling of the time. Whether you’re from that era or if you’re not, but you’re a hipster style or a retro lover, you’ll enjoy Turbo which is an attempt to recreate the look of Turbo Vision.
Turbo is an experimental text editor for the terminal, based on Neil Hodgson’s Scintilla code editing component and Turbo Vision application framework and uses the NCURSES library.
It was created to demonstrate the new features of Turbo Vision. In particular, it served as a testing ground for Turbo Vision’s Unicode features.
As a text editor, Turbo is intended to be intuitive and easy to use. Usability and productivity are its other two big goals, although it hasn’t gotten that far yet. And just because it’s a Turbo Vision app, it offers a vintage look.
I tried to compile as I had in the project’s README.md, but I got problems. I consulted the issue related to this and saw that the information is very dispersed and not conclusive.
So, I’m going to show you here in an updated way how I proceeded.
First have the dependencies installed, for example on a system that uses APT, it would be:
sudo apt install cmake build-essential git \
libfmt-dev libmagic-dev libgpm-dev \
libncursesw5 libncursesw5-dev clang \
pkg-config libxcb1-dev
Then you need to clone recursively
git clone --recursive https://github.com/magiblot/turbo
Next step is to enter the television directory, in the issue they inform the wrong path, so the right one is:
cd turbo/deps/tvision
And compile the tvision:
cmake . -B ./build && cmake --build ./build
Then go back to the root of the project and compile:
cd ../../../turbo
Run CMake:
cmake .
And finally compile with Make:
make
The final torque is turbo and can be run: ./turbo
or installed, for example:
sudo cp turbo /usr/local/bin
Summarizing the steps in sequence are:
git clone --recursive https://github.com/magiblot/turbo
cd turbo/deps/tvision
cmake . -B ./build && cmake --build ./build
cd ../../../turbo
cmake .
make
./turbo
Cool, right?!
Turbo Repository: https://github.com/magiblot/turbo