HOME  NEWS  FORUM  DOWNLOAD  LINK
OpenCOBOL - an open-source COBOL compiler
Main Menu
Download
Documentation
Development
Who's Online
14 user(s) are online (5 user(s) are browsing Forum)

Members: 0
Guests: 14

more...
Powered by
SourceForge

Xoops

Creative Commons

OpenCOBOL Forum Index
   OpenCOBOL
     Terminal problems [solved] on debian/ubuntu - from seetho at forum.peoplecards.ca
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
btiffin
Posted on: 2012/2/22 18:24
Home away from home
Joined: 2008/6/7
From: CANADA
Posts: 1196
Terminal problems [solved] on debian/ubuntu - from seetho at forum.peoplecards.ca
from seetho

Hello,

It's been quite some time (~25yrs) since I last used COBOL (on a WANG VS100). I just stumbled upon OpenCOBOL recently and felt like picking it up again, especially to build some applications that are heavy on data entry screen. I currently use PERL and LISP so using ncurses is awkward to say the least, and I hate writing GUI apps - call me old fashion.

The first thing I tried was of course the short HELLO.COB sample program. No problems here. The trouble started when I modified the DISPLAY statement to:
DISPLAY
  "Hello world!" LINE 5 COL 5
END-DISPLAY


The program would compile normally, but when runned it would output nothing. This was on my Ubuntu 10.04/Gnome machine. The program was run under gnome-terminal. Suspecting some terminal problem I tried xterminal instead - nothing again. Then I switch out to a real (TTY) text terminal, and IT WORKS! I get my "Hello world!" displayed on line 5 and column 5 on the screen.

My gnome-terminal session is /dev/pts/0. It would seem that OpenCOBOL (at least on my PC) does not work well with pseudo terminals. If I did:
./hello >/dev/tty1

The output will appear on TTY1.

I tried recompiling OpenCOBOL 1.1 and ncurses 5.9 and still the same result. I even tried it on a freshly installed Debian 6.04 machine and still no go.

Googling did not turn up anything on this so I suspect that I'm the only one having this problem. Am I missing something?

Thanks.
Flat Previous Topic | Next Topic

Subject Poster Date
 » Terminal problems [solved] on debian/ubuntu - from seetho at forum.peoplecards.ca btiffin 2012/2/22 18:24
     Re: Terminal problems on debian/ubuntu - from seetho at forum.peoplecards.ca btiffin 2012/2/23 4:21
       Re: Terminal problems on debian/ubuntu - from seetho at forum.peoplecards.ca human 2012/2/23 8:41
         Re: Terminal problems on debian/ubuntu - from seetho at forum.peoplecards.ca btiffin 2012/2/25 5:54
           Re: Terminal problems on debian/ubuntu - from seetho at forum.peoplecards.ca btiffin 2012/2/25 15:26
             Re: Terminal problems on debian/ubuntu - from seetho at forum.peoplecards.ca btiffin 2012/2/27 4:18

Register To Post
 
Copyright (C) 2005 The OpenCOBOL Project. All rights reserved.
Powered by Xoops2 | PHP | MySQL | Apache
ocean-net