1

Je code sous MSVisualC++6.0, en interface texte...
Y'a quelqu'un qui saurait comment mettre les textes écrot avec cout en couleurs ?
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

2

Peut-être avec des séquences escape ANSI.
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

3

Glosialabols (dsl si j'ai écorché le pseudo !) m'a envoyé un fichier source...
j'ai pigé comment ça marche... c po simple, mais bon grin
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

4

je crois pas que ce soit possible sans toucher la memoire vidéo directement! On t'avait fait en tp ASM l'année dernière! Sinon tu fait un Qbasic grin c'est tellement plus simple!!
avatar

5

erf...
sauf que le Qbasic, c po trop mon truc..

Mais si, c'est possible avec des fonctions C...
fo voir les couelrus qu'n veut en fonction des positions à l'écran, et tout mettre ds un buffer, auquel correspond la chaîne, ds un autre buffer...
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

6

essaye
printf("\033[36m")
ça marche sous nux et dj
avatar
fabetal_ > Hier, je me suis fait monter par un pote
redangel > et en chevals, ça donne quoi?
Nil> OMG I think I'm gay

7

OK, je tenterai tout à l'heure ou demain...
quoique... almlez, v tenter tt de suite.
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

8

po marché sad
ça m'a écrit "[36m]" je crois

mettre xxx sertt à mettre des caractères ASCII dont le code est donnéen octal, je crois ?
(du moisn c ce que ça fait sous TIGCC... je penses que c pareil sous DOS)

(bien sûr, pr les couleurs, c sous DOS que je teste, pas sous TIGCC !!!!!!)
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

9

Ce que propose janjan2 est une séquence escape ANSI. Ça ne marche que si tu as installé un driver qui les gère (ANSI.SYS par exemple). Si ce n'est pas installé automatiquement, c'est probablement à cause des problèmes de sécurité que ça pose (il y a des séquences escape qui peuvent automatiquement exécuter des commandes si on appuie sur une touche ou des choses semblables).
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

10

arf, d'accord.
merci pr l'explication.

bon, ebn alors, ça doit^pas être installé à l'IUT sad
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

11

Je comprends aussi pourquoi. Le genre de trucs qu'on peut faire un abusant ces codes (des "bombes ANSI" comme on appelle communément les troyens abusant les séquences escape ANSI) n'est pas gentil du tout. Par exemple, un simple fichier BAT peut installer un troyen qui formate le disque dur dès qu'on appuie sur la touche espace et/ou sur la touche E.
[edit]Edité par Kevin Kofler le 26-02-2002 à 20:32:12[/edit]
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

12

arf... d'accord, je comrpend pkoi alors.
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall