Date: Mon, 3 May 2004 00:04:20 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 367 ************************************************** Sunday 02 May 2004 Number 367 ************************************************** Subjects for today 1 Re: EMACS : John Poltorak 2 Re: Autoconf 2.59 problem : John Poltorak 3 Re: Re: EMACS : John Poltorak 4 Re: DLL for GNU text utils : Thomas Dickey 5 Automake 1.8.3 : John Poltorak 6 termcap colours : John Poltorak 7 Re: termcap colours : Thomas Dickey 8 SDL : John Poltorak 9 Re: termcap colours : John Poltorak 10 Re: SDL : Christian Hennecke" 11 Re: Automake 1.8.3 : Andreas Buening 12 Re: termcap colours : Andreas Buening 13 Re: termcap colours : Thomas Dickey 14 Re: termcap colours : Thomas Dickey 15 Re: termcap colours : Andreas Buening 16 Re: termcap colours : Thomas Dickey 17 Re: EMACS : Masaru Nomiya 18 Re: EMACS : Masaru Nomiya **= Email 1 ==========================** Date: Sat, 1 May 2004 15:07:13 +0100 From: John Poltorak Subject: Re: EMACS On Sat, May 01, 2004 at 06:50:02PM +0900, Masaru Nomiya wrote: > Hello, > > Sorry for late response. That's OK - I thought you might have disappeared. > In the Message; > > Subject : EMACS > Message-ID : <20040429201048.A85 at warpix.org> > Date & Time: Thu, 29 Apr 2004 20:10:48 +0100 > > [John] == John Poltorak has written: > > John> What I'd like to know is how do I bring the app up as a PM app. It comes > John> up as a text mode app when I run 'emacs -nw'. > > At ../emacs-20.7/src, execute > > make emacspm.exe > > Then, you may get PM version of Emacs. It seems as though it builds as a PM app anyway. It only came up in text mode because the batch file I use started it with '-nw'. If I remove that it runs as a PM app. > --- > Masaru Nomiya mail-to: nomiya at ttmy.ne.jp > > "Bill! You married with Computers. > Not with Me!" > "No..., with money." -- John **= Email 2 ==========================** Date: Sat, 1 May 2004 15:11:24 +0100 From: John Poltorak Subject: Re: Autoconf 2.59 problem On Sat, May 01, 2004 at 02:34:58PM +0200, Andreas Buening wrote: > John Poltorak wrote: > > > > There seems to be a problem with the OS/2 version of Autoconf which is not > > present in the original distribution... > > > > This is the error I get when running configure on bc v1.06:- > > [snip] > > > ./configure[5435]: syntax error: `if' unmatched > > Should work now: > http://unix.os2site.com/sw/pub/source/autoconf/autoconf-2_59-r2.zip Excellent! I can confirm that it fixes the problem I had here when building bc. > > Bye, > Andreas -- John **= Email 3 ==========================** Date: Sat, 1 May 2004 15:23:15 +0100 From: John Poltorak Subject: Re: Re: EMACS On Sat, May 01, 2004 at 07:23:48PM +0900, Masaru Nomiya wrote: > Hello, > > In the Message; > > Subject : Re: EMACS > Message-ID : <20040429213814.B85 at warpix.org> > Date & Time: Thu, 29 Apr 2004 21:38:14 +0100 > > [John] == John Poltorak has written: > > John> Any idea on how I can use a different font? > > John> I have a large courier font and would prefer a small System Vio font if I > John> can have one - > > You must make 2 files in your HOME directory,ie. .XDefaults and FONTSET.OS2. Many thanks. I've added those two files and have a font that I like now which is nice and small so that I can pack a lot of lines on the screen. I really need to spend some time on learning how to use Emacs now. Is there a preferable place to report any problems? > HTHY, > > --- > Masaru Nomiya mail-to: nomiya at ttmy.ne.jp > > "No Windows, no gains!" ..... "Why, I am wrong?" > > -- Bill -- -- John **= Email 4 ==========================** Date: Sat, 1 May 2004 11:27:47 -0400 (EDT) From: Thomas Dickey Subject: Re: DLL for GNU text utils On Sat, 1 May 2004, Andreas Buening wrote: > John Poltorak wrote: > To maximize your confusion: libtool IS those two macros. ;-))) > > Effectively, libtool is a set of files (libtool.m4 and ltmain.sh (?)). more/less. I use libtool without those files. The notion that someone has to (by observation) double the size of their tarball to get a workable version of libtool relegates it to "alpha" category software. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net **= Email 5 ==========================** Date: Sat, 1 May 2004 19:30:54 +0100 From: John Poltorak Subject: Automake 1.8.3 It seems that a lot of problems have been reported with Automake 1.8.3 and it has now been replaced with a bug fixed version - 1.8.4 :- ftp://ftp.gnu.org/pub/gnu/automake/automake-1.8.4.tar.gz Are the OS/2 patches likely to work with this new version? Is there any point in trying to apply them? -- John **= Email 6 ==========================** Date: Sat, 1 May 2004 19:36:37 +0100 From: John Poltorak Subject: termcap colours I have never really understood how to use termcap properly... I know you need to set a value for term such as ANSI, but isn't this just for terminal type? Can't I use ANSI but still have cyan text on a blue background? I have to change terminal type to ANSI-COLOR-2 if I want different colours, but this doesn't seem to be the best way of doing things. -- John **= Email 7 ==========================** Date: Sat, 1 May 2004 14:46:49 -0400 (EDT) From: Thomas Dickey Subject: Re: termcap colours On Sat, 1 May 2004, John Poltorak wrote: > > > I have never really understood how to use termcap properly... > > I know you need to set a value for term such as ANSI, but isn't this just > for terminal type? Can't I use ANSI but still have cyan text on a blue > background? I have to change terminal type to ANSI-COLOR-2 if I want > different colours, but this doesn't seem to be the best way of doing > things. it's not. the termcap (or terminfo) tells an application how to set colors, but doesn't (really) force the screen to be a particular color, since other applications may reset them. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net **= Email 8 ==========================** Date: Sat, 1 May 2004 19:43:16 +0100 From: John Poltorak Subject: SDL I read something about SDL (Simple DirectMedia Layer) having been ported to OS/2 recently which has caused a bit of a stir on USENET. Can anyone exlain what it is and why I would want it? -- John **= Email 9 ==========================** Date: Sat, 1 May 2004 19:53:18 +0100 From: John Poltorak Subject: Re: termcap colours On Sat, May 01, 2004 at 02:46:49PM -0400, Thomas Dickey wrote: > On Sat, 1 May 2004, John Poltorak wrote: > > > > > > > I have never really understood how to use termcap properly... > > > > I know you need to set a value for term such as ANSI, but isn't this just > > for terminal type? Can't I use ANSI but still have cyan text on a blue > > background? I have to change terminal type to ANSI-COLOR-2 if I want > > different colours, but this doesn't seem to be the best way of doing > > things. > > it's not. the termcap (or terminfo) tells an application how to set > colors, but doesn't (really) force the screen to be a particular color, > since other applications may reset them. So how do I set the colours I want? If I use TERM=ANSI from termcap.x11 I get an awfull brown coloured background with black text. Can I change this without altering terminal type? > -- > Thomas E. Dickey > http://invisible-island.net > ftp://invisible-island.net -- John **= Email 10 ==========================** Date: Sat, 01 May 2004 21:02:40 +0200 (CEST) From: "Christian Hennecke" Subject: Re: SDL On Sat, 1 May 2004 19:43:16 +0100, John Poltorak wrote: >I read something about SDL (Simple DirectMedia Layer) having been ported >to OS/2 recently which has caused a bit of a stir on USENET. > >Can anyone exlain what it is and why I would want it? Quoting the homepage at www.libsdl.org: "Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is used by MPEG playback software, emulators, and many popular games, including the award winning Linux port of "Civilization: Call To Power." Simple DirectMedia Layer supports Linux, Windows, BeOS, MacOS Classic, MacOS X, FreeBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX. There is also code, but no official support, for Windows CE, AmigaOS, Dreamcast, Atari, NetBSD, AIX, OSF/Tru64, RISC OS, and SymbianOS. SDL is written in C, but works with C++ natively, and has bindings to several other languages, including Ada, Eiffel, Java, Lua, ML, Perl, PHP, Pike, Python, and Ruby." You would want it, because many Unix applications that produce graphical output use it. Especially games. Hey, OS/2 needs more fun! Can somebody please port Enigma? :-))) See http://www.nongnu.org/enigma/. Christian Hennecke **= Email 11 ==========================** Date: Sat, 01 May 2004 21:42:11 +0200 From: Andreas Buening Subject: Re: Automake 1.8.3 John Poltorak wrote: > > It seems that a lot of problems have been reported with Automake 1.8.3 and > it has now been replaced with a bug fixed version - 1.8.4 :- > > ftp://ftp.gnu.org/pub/gnu/automake/automake-1.8.4.tar.gz > > Are the OS/2 patches likely to work with this new version? Is there any > point in trying to apply them? They told me they would apply all patches in 1.8.4. Bye, Andreas **= Email 12 ==========================** Date: Sat, 01 May 2004 21:42:34 +0200 From: Andreas Buening Subject: Re: termcap colours John Poltorak wrote: > > On Sat, May 01, 2004 at 02:46:49PM -0400, Thomas Dickey wrote: > > it's not. the termcap (or terminfo) tells an application how to set > > colors, but doesn't (really) force the screen to be a particular color, > > since other applications may reset them. > > So how do I set the colours I want? You have a termcap.dat somewhere. This file contains definitions for all terminals. It contains definitions for control characters (backspace = ^H, newline = CR/LF, colors, number of rows and columns) > If I use TERM=ANSI from termcap.x11 I get an awfull brown coloured > background with black text. Yes, I remember that termcap.dat file. Whoever wrote that stuff, was obviously color blind. ;-) > Can I change this without altering terminal > type? Sure. You can set background color, foreground color, color for highlightning ... Long time ago I wrote an os2 console definition that uses blue for background but I don't remember which command means what: o2|os2|OS/2 ANSI console:\ :co#80:li#25:bs:pt:am:bl=^G:le=^H:do=^J:ta=^I:\ :cl=\E[H\E[2J:ce=\E[K:\ :sc=\E[s:rc=\E[u\:\ :ho=\E[H:cm=\E[%i%d;%dH:\ :up=\E[A:do=\E[B:le=\E[C:ri=\E[D:nd=\E[C:\ :ti=\E[0;37;44m\E[=7l:te=\E[0m\E[=7h\E[1B\E[K\E[1A:\ :kl=\EOD:kr=\EOC:ku=\EOA:kd=\EOB:\ :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\EOT:\ :k6=\EOU:k7=\EOV:k8=\EOW:k9=\EOX:k0=\EOY:\ :kh=\E]7:kH=\E]1:\ :kb=^H:kC=\E[2J:kI=\E[ at :kD=\E[P:kL=\E[M:\ :kE=\E[K:kN=\E]3:kP=\E]9:kF=\E]c2:kR=\E]c8:\ :aw:tc=ansi-colorset-1: Bye, Andreas **= Email 13 ==========================** Date: Sat, 1 May 2004 15:48:19 -0400 (EDT) From: Thomas Dickey Subject: Re: termcap colours On Sat, 1 May 2004, John Poltorak wrote: > So how do I set the colours I want? > > If I use TERM=ANSI from termcap.x11 I get an awfull brown coloured > background with black text. Can I change this without altering terminal > type? I've noticed that. It was probably what looked ok for contrast, given that OS/2 console windows don't have very bright colors. You're probably talking about this entry: ansi|ANSI.SYS color:\ :co#80:li#25:bs:pt:bl=^G:le=^H:do=^J:\ :cl=\E[H\E[2J:ce=\E[K:\ :ho=\E[H:cm=\E[%i%d;%dH:\ :up=\E[A:do=\E[B:le=\E[C:ri=\E[D:nd=\E[C:\ :ti=\E[0;30;43m\E[=7l:te=\E[0m\E[=7h:\ :so=\E[1;37;43m:se=\E[0;30;43m:\ :us=\E[1;31;43m:ue=\E[0;30;43m:\ :mb=\E[5m:md=\E[1;37;43m:\ :mr=\E[1;37;43m:me=\E[0;30;43m:\ :aw: The so/se/us/ue/mr/me strings all are using color. The 43 is brown (non-bright-yellow) background. "me" is the string that a reset does, so normally you have black text on a brown background. If you don't set the background in that manner, OS/2 windows default to white text on black background (which happens to be what I normally use on Linux, while most others have black text on white background). On most systems (I forget if OS/2's console windows support this) I set the default palette for windows to coincide with what makes the best contrast, and then use the terminfo to tell applications how to draw color on that. Forcing the standout, underline and reverse strings to show different color combinations defeats that. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net **= Email 14 ==========================** Date: Sat, 1 May 2004 18:43:42 -0400 (EDT) From: Thomas Dickey Subject: Re: termcap colours On Sat, 1 May 2004, Andreas Buening wrote: > Sure. You can set background color, foreground color, > color for highlightning ... > Long time ago I wrote an os2 console definition that uses > blue for background but I don't remember which command means > what: > > o2|os2|OS/2 ANSI console:\ > :co#80:li#25:bs:pt:am:bl=^G:le=^H:do=^J:ta=^I:\ > :cl=\E[H\E[2J:ce=\E[K:\ > :sc=\E[s:rc=\E[u\:\ > :ho=\E[H:cm=\E[%i%d;%dH:\ > :up=\E[A:do=\E[B:le=\E[C:ri=\E[D:nd=\E[C:\ > :ti=\E[0;37;44m\E[=7l:te=\E[0m\E[=7h\E[1B\E[K\E[1A:\ ^^^^^^^^^^^ (white-on-blue) ^^^^^ (may reset colors to white-on-black) ti and te are normally sent by vi when beginning/ending the screen mode. > :kl=\EOD:kr=\EOC:ku=\EOA:kd=\EOB:\ > :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\EOT:\ > :k6=\EOU:k7=\EOV:k8=\EOW:k9=\EOX:k0=\EOY:\ > :kh=\E]7:kH=\E]1:\ > :kb=^H:kC=\E[2J:kI=\E[ at :kD=\E[P:kL=\E[M:\ > :kE=\E[K:kN=\E]3:kP=\E]9:kF=\E]c2:kR=\E]c8:\ ^^^^^^^^^^^^^^^ (my keyboard doesn't send these for pageup/pagedown). > :aw:tc=ansi-colorset-1: > > > Bye, > Andreas > -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net **= Email 15 ==========================** Date: Sun, 02 May 2004 13:14:18 +0200 From: Andreas Buening Subject: Re: termcap colours Thomas Dickey wrote: > > On Sat, 1 May 2004, Andreas Buening wrote: > > :ti=\E[0;37;44m\E[=7l:te=\E[0m\E[=7h\E[1B\E[K\E[1A:\ > ^^^^^^^^^^^ (white-on-blue) That's true. I prefer blue background. > ^^^^^ (may reset colors to white-on-black) Yes, it does. > ti and te are normally sent by vi when beginning/ending the screen mode. Also by less and info, I guess. > > :kE=\E[K:kN=\E]3:kP=\E]9:kF=\E]c2:kR=\E]c8:\ > ^^^^^^^^^^^^^^^ (my keyboard doesn't send these for > pageup/pagedown). No idea. What would be the correct keys? Bye, Andreas **= Email 16 ==========================** Date: Sun, 2 May 2004 08:55:32 -0400 (EDT) From: Thomas Dickey Subject: Re: termcap colours On Sun, 2 May 2004, Andreas Buening wrote: > Thomas Dickey wrote: > > > > On Sat, 1 May 2004, Andreas Buening wrote: > > > :ti=\E[0;37;44m\E[=7l:te=\E[0m\E[=7h\E[1B\E[K\E[1A:\ > > ^^^^^^^^^^^ (white-on-blue) > > That's true. I prefer blue background. > > > ^^^^^ (may reset colors to white-on-black) > > Yes, it does. Then (as I understand the entry), you have blue background when running vi, less and info, but white-on-black when doing ls and other ordinary shell commands. My impression of John Polterak's question was that he wanted a colored background all the time (which is harder to guarantee). > > ti and te are normally sent by vi when beginning/ending the screen mode. > > Also by less and info, I guess. > > > > > :kE=\E[K:kN=\E]3:kP=\E]9:kF=\E]c2:kR=\E]c8:\ > > ^^^^^^^^^^^^^^^ (my keyboard doesn't send these for > > pageup/pagedown). > > No idea. What would be the correct keys? I have this (from entries I built/tested): emx-base|DOS special keys:\ :am:bw:mi:ms:xo:\ :co#80:it#8:li#25:\ :K1=\0G:K2=\0L:K3=\0I:K4=\0O:K5=\0Q:ae=\E[10m:as=\E[11m:\ :bl=^G:ce=\E[K:cl=\E[2J:cm=\E[%i%d;%dH:do=\E[B:ho=\E[H:\ :is=\E[m\E[?7h:k1=\0;:k2=\0<:k3=\0=:k4=\0>:k5=\0?:k6=\0 at :\ :k7=\0A:k8=\0B:k9=\0C:kD=\0S:kI=\0R:kN=\0Q:kP=\0I:kb=^H:\ :kd=\0P:kh=\0G:kl=\0K:kr=\0M:ku=\0H:le=^H:mb=\E[5m:md=\E[1m:\ :me=\E[0;10m:mr=\E[7m:nd=\E[C:rc=\E[u:sc=\E[s:se=\E[m:\ :so=\E[7m:ue=\E[m:up=\E[A:us=\E[4m: which uses \0Q (null followed by Q) and \0I (null followed by I). terminfo stores those nulls internally as \200. I'm not sure what the termcap functions on OS/2 EMX do. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net **= Email 17 ==========================** Date: Sun, 02 May 2004 22:30:31 +0900 From: Masaru Nomiya Subject: Re: EMACS Hello, In the Message; Subject : Re: EMACS Message-ID : <20040501150713.Y85 at warpix.org> Date & Time: Sat, 1 May 2004 15:07:13 +0100 [John] == John Poltorak has written: Me>> Sorry for late response. John> That's OK - I thought you might have disappeared. No. :-) But, I haven't got spare time as before at the moment. In the Message; Subject : Re: Re: EMACS Message-ID : <20040501152315.B85 at warpix.org> Date & Time: Sat, 1 May 2004 15:23:15 +0100 [John] == John Poltorak has written: John> Many thanks. I've added those two files and have a font that I like now John> which is nice and small so that I can pack a lot of lines on the screen. That's good! John> I really need to spend some time on learning how to use Emacs now. Yes, Emacs do enrich our "computing life". John> Is there a preferable place to report any problems? Problem? os2-emacs-ja ML is the best place, but it's inactive for a long time... I'm joining Japanese Emacs related ML, and it's OK for me. Nevertheless, there exist some problems, but .I think, they aren't so severe. BTW, If you find out any problem, post it here. --- Masaru Nomiya mail-to: nomiya at ttmy.ne.jp "Bill! You married with Computers. Not with Me!" "No..., with money." **= Email 18 ==========================** Date: Sun, 02 May 2004 22:42:08 +0900 From: Masaru Nomiya Subject: Re: EMACS Hello, Sorry, I have fogoten to inform you of important advice. You must add below sentences in your .emacs. ;; For OS/2 (setq os2-process-start-session t) (setq os2-process-connection-type nil) Regards, --- Masaru Nomiya mail-to: nomiya at ttmy.ne.jp "No Windows, no gains!" ..... "Why, I am wrong?" -- Bill --