[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] cursor pos




torben fjerdingstad skriver:
> 
> Frank svarede:
> 
> >> Er der en (smart) måde at at placere tekst på position (x,y) på skærmen, i C
> >> standardbiblioteket? Eller bare som i basic, print tab(y) "blah"?
> >
> >> Jeg har ikke rigtigt mod på ncurses, med mindre det er strengt nødvendigt.
> >
> >Hvis du ved til hvilken terminal du skal arbejde, så kan
> >du sende en passende escape sekvens, men så vil dit program kun
> >virke til den pågældene terminaltype .
> >Derfor har man ncurses for at gøre dette standard, og uafhængig
> >af aktuel terminaltype.
> >Men prøv at se på manual siden til ncurses.
> 
> Det er ikke helt rigtigt. Det er terminfo (eller evt. termcap)
> der bruges til at lave terminaluafhængighed.
> 
> man terminfo.
> 
> Iøvrigt er ncurses ikke så god som slang.
> 
> Man kan lege med terminfo på kommandolinjen, f.eks.:
> 
> tput cup 2 2
> Prøv med andre tal.
> 
> tput sc og tput rc er også interessante.
> (save cursor position og restore cursor position).
> 
> cup, sc, rc samt alle de andre muligheder er beskevet
> på terminfo manual siden.
> 
> Man kan liste en terminaltypes capabilities med:
> infocmp, alternativt infocmp -L

Hvis jeg så ville lave et lille ur der skrev ud til samme sted hele
tiden hvordan kunne jeg så det?? (source eksempel plz)

MVH
Kim Schulz


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:07 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *