08-01-2019
Ncurses status bar
Hi, all,
I'm writing a BBS telnet client, and am trying to implement a status bar into it, at the bottom of the screen.
I am using NCurses to accomplish this. So far, it appears to be working, that is, upon connecting to BBS, it
will display the status bar, and then quickly disappear.
Here is some code:
https://pastebin.com/raw/wM6hcQkk
The first function is executed before the second.
It works and everything, but only for a second or so.
Can anyone tell me what i'm doing wrong?
Thanks.
Last edited by ignatius; 08-01-2019 at 01:04 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I believe i have most of samba configured right but i get this error each time time try to run it. I was given suggestion that i touch the file, i did, but i still cannot rid myself of this error.
Any suggestions (2 Replies)
Discussion started by: macdonto
2 Replies
2. Programming
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
3. Red Hat
I have successfully installed RedHat 8.0 onto a Dell PowerEdge SC1425 today. This server has two SATA hard drives, and an IDE DVD-ROM drive.
Using the following kernel parameters, i successfully installed across both hard drives from CD:
ide0=0x1f0,0x3f6,14 vga=791 resolution=1024x768 expert... (5 Replies)
Discussion started by: fishsponge
5 Replies
4. Shell Programming and Scripting
How To Generate different different progress bar in shell script?
like we install some software it show us progress, like we install RPM that also show us progress.
Thanks,
Bash (2 Replies)
Discussion started by: learnbash
2 Replies
5. Shell Programming and Scripting
I am trying to get sed, tr or awk to search a file that contains records with fields delimited by the vertical bar | and replace the occurrences in the records where the vertical bar is preceded by a space " |" with a vertical bar.
Sample data record
zelli |||59 Stonewall Dr ||W Barnstable |MA... (2 Replies)
Discussion started by: clintrpeterson
2 Replies
6. Shell Programming and Scripting
After some googling, I came across this script to create a spinning cursor:
#!/bin/bash
# paste following in your script
declare -a Spinner
Spinner=(/ - \\ \| / - \\ \| )
Spinnerpos=0
update_spinner()
{
printf "\b"${Spinner}
(( Spinnerpos=(Spinnerpos +1)%8 ))
}
# testing... (2 Replies)
Discussion started by: mrwatkin
2 Replies
7. Programming
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
8. Programming
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
9. Ubuntu
Below the list of command to explain the status
michelangeli@hp:~$ lspci -nn | grep -i net
02:00.0 Ethernet controller : Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 03)
04:00.0 Network controller : Ralink corp. RT2790 Wireless 802.11n 1T/2R... (6 Replies)
Discussion started by: michelangeli
6 Replies
10. Programming
Dear Team
I am using DB2 v10 z/os database . Need expert guidance to figure out best way to track table activities ( Ex Delete, Insert,Update )
Scenario
We have a table which is critical and many developer/testing team access on daily basis . We had instance where some deleted... (1 Reply)
Discussion started by: Perlbaby
1 Replies
LEARN ABOUT DEBIAN
wml::std::href
wml::std::href(3) EN Tools wml::std::href(3)
NAME
wml::std::href - Enhanced Hyperlink
SYNOPSIS
#use wml::std::href
<href url="..." [name="..."] [image="..."] [hint="..."] [target="..."]>
DESCRIPTION
This is an interface to the standard HTML anchor tag ("<a href="...">...</a>"). The intended use of "<href>" is to simplify the creation
of hyperlinks. The following
<href url="THE://URL">
<href url="THE://URL" name="THE_NAME">
<href url="THE://URL" image="THE_IMG.EXT">
<href url="THE://URL" name="THE_NAME" image="THE_IMG.EXT">
<href url="THE://URL" hint="THE_HINT">
<href url="THE://URL" name="THE_NAME" image="THE_IMG.EXT" hint="THE_HINT">
gets expanded to
<a href="THE://URL"><tt>THE://URL</tt></a>
<a href="THE://URL">THE_NAME</a>
<a href="THE://URL"><img src="THE_IMG.EXT" alt="THE://URL" border="0"></a>
<a href="THE://URL"><img src="THE_IMG.EXT" alt="THE_NAME" border="0"></a>
<a href="THE://URL" onmouseover="self.status='THE_HINT';return true" onmouseout="self.status='';return true" onfocus="self.status='THE_HINT';return true" onblur="self.status='';return true"><tt>THE://URL</tt></a>
<a href="THE://URL" onmouseover="self.status='THE_HINT';return true" onmouseout="self.status='';return true" onfocus="self.status='THE_HINT';return true" onblur="self.status='';return true"><img src="THE_IMG.EXT" alt="THE_NAME" border="0"></a>
AUTHOR
Ralf S. Engelschall
rse@engelschall.com
www.engelschall.com
REQUIRES
Internal: P1, P2
External: --
SEE ALSO
HTML "<a>" and "<img>" tags.
EN Tools 2014-04-16 wml::std::href(3)