Ncurses colors


 
Thread Tools Search this Thread
Top Forums Programming Ncurses colors
# 15  
Old 12-13-2014
What is the result of my proposed ESC- sequence on your linux system's virtual consoles? And, what terminal emulator do you use?
On my consoles, above gives a brilliant white while my lxterminal doesn't accept the command.
# 16  
Old 12-13-2014
Hi RudiC...
It doesn't work on OSX 10.7.5, default bash terminal...
Code:
Last login: Sat Dec 13 22:08:44 on ttys000
AMIGA:barrywalker~> bash -version
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)
Copyright (C) 2007 Free Software Foundation, Inc.
AMIGA:barrywalker~> echo -e "\033]P7ffffff"
7ffffff
AMIGA:barrywalker~> _

# 17  
Old 12-13-2014
Quote:
Originally Posted by RudiC
What is the result of my proposed ESC- sequence on your linux system's virtual consoles? And, what terminal emulator do you use?
On my consoles, above gives a brilliant white while my lxterminal doesn't accept the command.
Rudi, it does nothing on my Linux system. Tried the "Konsole" as well as an xterm.

My system is a KDE build, and the default terminal emulator is "konsole".
# 18  
Old 12-14-2014
Too bad. Sorry.

Btw, I was not talking of the KDE- "Konsole", but of the virtual consoles that you can switch to with the <Alt>-Fn keys (evtl. <Ctrl><Alt>Fn).
# 19  
Old 12-14-2014
Perhaps there is something to be had using virtual consoles, but the application I am developing will always want to be run in a user's default environment. Making ncurses work as I wish in that environment is the purpose of this thread.
# 20  
Old 12-14-2014
Sadly it looks as though ncurses has a limitation and having never coded fo it then I(/we) are probably not going to be able to find a solution at this point.

I will pursue a little further but I don't envisage a solution any time soon.

If you do find one please upload your findings for the greater good...

Humble apologies...
# 21  
Old 12-14-2014
Is there an infocmp entry for your terminal type, or is curses using a generic database entry for your terminal? (What output do you get from infocmp?) Look for man pages for infocmp and tic.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

[C/Ncurses]Need help on a project

Hi guys I'm a newbie.Got a school project:need to convert Linux Hunt game,which is in K&R C to C99.I got some problems over Ncurses files:new library it's very different from the old one.There are some variables that with gcc are considered undefined 'cause they are no more used in the new Ncurses... (2 Replies)
Discussion started by: fracche
2 Replies

2. Programming

Memory sharing with NCURSES

Hey, Im using a shared memory segment to share a WINDOW structure among 2 processes. Basically I'm building a multi-player snake game in which multiple prrocesses access the window. The 'parent' process initializes the shared memory segment and puts the window in it. I can access and perform... (1 Reply)
Discussion started by: dgre0018
1 Replies

3. Programming

ncurses refresh()

i have read in one of links, there its documented but i am using following code int main () { char ch; initscr(); printw("Enter a char :"); ch=getch(); printw("You Entered '%c' ",ch); getch(); endwin(); return 0; } the code does... (2 Replies)
Discussion started by: MrUser
2 Replies

4. UNIX for Dummies Questions & Answers

ncurses not in library?

I tried to complile a text-based messenger program but, while configuring, got a message saying that ncurses wasn't found. Though it appears to be there... This is the program: http://sourceforge.net/project/showfiles.php?group_id=110124&package_id=119574&release_id=373164 I get the error... (5 Replies)
Discussion started by: riwa
5 Replies

5. Programming

Help with ncurses

Help with ncurses Hi, I need some help with ncurses.I'm supposed to write a program in C to display date and time and also to input the username and password using C.I chose ncurses for my task and here I am. Code: #include <stdio.h> #include <termios.h> #include... (1 Reply)
Discussion started by: rakesh_01
1 Replies

6. Linux

Ncurses with Ubuntu

Hi, I am new to this programming with ncurses. I want to work out few examples on this ncurses. I jus want to know whether this ncurses works with Ubuntu OS? I found tat ncurses doesn come with AIX OS, may be it could be installed as a SupportPac or something, not sure about it. Can u please... (4 Replies)
Discussion started by: julie_s
4 Replies

7. Programming

nCurses over telnet

hello all. my first post here :) i just want a little help. i have a small app tha uses ncurses for gui, and for user input. I need this app to be executed on a sever side, and have access to it through telnet. When i test it, i see that enter makes the hole gui move up, and some other... (0 Replies)
Discussion started by: tamtam
0 Replies

8. UNIX for Advanced & Expert Users

Using Ncurses for testing vi

Hi, Somebody has told me that NCurses can be used to test vi. But i was unable to figure out how. If anybody has done anything with NCurses please reply. Also is there any othre way by which we can test vi automatically? (2 Replies)
Discussion started by: rahulrathod
2 Replies

9. Programming

ncurses -> the best way to use menus

hello there, i'm exploring the curses lib and i'm having some trouble with "defining a style". to clarify: i'm creating a menu driven app and i've been thinking what's the best way to use menus: make global vars (not my favourite), creating a function which designs the menu and returns the... (2 Replies)
Discussion started by: crashnburn
2 Replies

10. Programming

ncurses/Darwin

I am using Darwin on Mac OS X.I.I (new to both Unix and C++). I downloaded the ncurses library from http://prdownloads.sourceforge.net/gnu-darwin/ncurses-5.2.tgz, but I don't know what to do with it now. Stuffit has expanded the archive, but I still have the original .tgz as well (if that's... (1 Reply)
Discussion started by: parmenides
1 Replies
Login or Register to Ask a Question