By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,722 Members | 1,227 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,722 IT Pros & Developers. It's quick & easy.

Variable assignment

P: n/a
Hello,
I like to know how to affect a variable with a value like:
<ESC>[1m (Assignment of color for terminal VT220)

$vVar = 0x1b.... in exadecimal

Thanks in advance!

Alain
--
Alain Chappuis (Remove: pouriel to answer me in my address!)
Université de Genève /Faculté de Médecine/Service Informatique
http://www.sifm.unige.ch/presentation/alain.php
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Alain Chappuis wrote:
I like to know how to affect a variable with a value like:
<ESC>[1m (Assignment of color for terminal VT220)

$vVar = 0x1b.... in exadecimal

http://www.php.net/manual/en/language.types.string.php

--
USENET would be a better place if everybody read:
http://www.expita.com/nomime.html
http://www.netmeister.org/news/learn2quote2.html
http://www.catb.org/~esr/faqs/smart-questions.html
Jul 17 '05 #2

P: n/a
"Alain Chappuis" <Al************@medecine.unige.ch.pouriel> wrote in message
news:41********@nntp.unige.ch...
Hello,
I like to know how to affect a variable with a value like:
<ESC>[1m (Assignment of color for terminal VT220)

$vVar = 0x1b.... in exadecimal

Thanks in advance!

Alain
--
Alain Chappuis (Remove: pouriel to answer me in my address!)
Université de Genève /Faculté de Médecine/Service Informatique
http://www.sifm.unige.ch/presentation/alain.php


define('ESC',chr(27).'[');

$vVar = ESC.'1m';

---

Norman
--
Avatar hosting at www.easyavatar.com
Jul 17 '05 #3

P: n/a
Norman Peelman a écrit :
"Alain Chappuis" <Al************@medecine.unige.ch.pouriel> wrote in message
news:41********@nntp.unige.ch... define('ESC',chr(27).'[');

$vVar = ESC.'1m';


Thank you Norman!
AC
--
Alain Chappuis (Remove: pouriel to answer me in my address!)
Université de Genève /Faculté de Médecine/Service Informatique
http://www.sifm.unige.ch/presentation/alain.php
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.