LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-02-2017, 01:22 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Simple terminal based desktop (TUI, Vision)


Hello,

I was looking for an alternative to Screen and Tmux, for a simple viewer/browser on Linux.

For fun, I just made a basic simple terminal TUI. It is useful to quickly view some files on the terminal.
(it is basic until now, it works already good, but step by step, it will be more elaborated with the time).

I would like to ask if you may have a minimum code on termcap (ncurses) so that I can include BASH termninal on it.

Regards, Have Fun Using Linux!

Source: https://github.com/spartrekus/ndesktop-tv
Attached Thumbnails
Click image for larger version

Name:	ndesktop-tv.png
Views:	301
Size:	9.6 KB
ID:	24657   Click image for larger version

Name:	ndesktop-pic02.png
Views:	205
Size:	48.9 KB
ID:	24720  

Last edited by Xeratul; 04-07-2017 at 01:59 PM.
 
Old 04-02-2017, 11:27 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,574
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Where are the libraries? Your zip file only contains ndesktop.c.
 
Old 04-02-2017, 02:02 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I had to check this out after Hazel's response:

Code:
➜ gcc ndesktop.c 
ndesktop.c:20:30: fatal error: ../libc/libc-key.c: No such file or directory
compilation terminated.

Last edited by dugan; 04-02-2017 at 02:05 PM.
 
Old 04-07-2017, 01:48 PM   #4
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by dugan View Post
I had to check this out after Hazel's response:

Code:
➜ gcc ndesktop.c 
ndesktop.c:20:30: fatal error: ../libc/libc-key.c: No such file or directory
compilation terminated.
Bit delayed. Since the code is still under development, the main lib is behind delayed.
https://github.com/spartrekus/ndeskt...aster/ndesktop
I have changed the colors to blue, and there are many more features. I have made a new version that allows to move even faster the tui windows.

termcap will be somehow... to be added on the top. Bash must be included.
 
Old 04-08-2017, 12:57 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Re-inventing the wheel with LEGO.
 
1 members found this post helpful.
Old 04-08-2017, 01:20 AM   #6
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by ondoho View Post
Re-inventing the wheel with LEGO.
worst than LEGO, with stones

kinda true. It's from a first hello world to more complicated programme for a beginner.

[edit: your aggressivity against beginners is also visible here]

Last edited by Xeratul; 04-08-2017 at 04:03 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Google releases Cloud Vision API with demo for Pi-based robot LXer Syndicated Linux News 0 12-05-2015 08:03 PM
A simple Arch based Desktop installation szboardstretcher LQ Articles Discussion 0 10-30-2013 01:44 AM
Slack 12.2 to 13 upgrade - now double vision via remote desktop Ook Slackware 2 03-27-2010 03:27 PM
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM
User based Authentication in Squid instead of Terminal based. TSK2000 Linux - Software 1 12-30-2005 02:22 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration