Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!pepper!cmcmanis From: cmcmanis%pepper@Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga.tech Subject: Re: Fonts on window (consoles)_ Message-ID: <50257@sun.uucp> Date: 20 Apr 88 23:27:13 GMT References: <458@viscous> Sender: news@sun.uucp Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Organization: Sun Microsystems, Mountain View Lines: 32 Keywords: diskfont changes on console windows In article <458@viscous> brianm@sco.COM (Brian Moffet) writes: >I assume this is the correct newsgroup.... none better. >I am trying to write a program which will change the fonts on >the console device of a CLI process. I am doing this to learn, >so getting a binary would be little help. Your attempts were good but you are missing a critical piece of information. Specifically, the window that the console device is using. There is a program that Carolyn Scheppner wrote called ConsPackets.c that is on a Fish disk as well as on BIX and possibly in the source archives on purdue. This program shows you how to send a packet to the console.device and have it return a ConUnit structure which has in it a pointer to a window. Set _that_ windows font to the one you want and the font will change on the console of that CLI process. You might also want to type ^[c to clear the screen to keep the console from being fragged by two different fonts on the screen. >I have gotten the font for the title bar to change (looks strange in >emerald 12! ) Another thing to consider is that the console device does not handle proportional fonts very well at all. The problems occur when you try to 'erase' characters and such. --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you.