News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Console window size

Started by nidud, September 08, 2013, 10:09:49 PM

Previous topic - Next topic

dedndave

nice info, nidud
maybe someday i will experiment with creating a TrueType console font   :P

nidud

#46
deleted

dedndave

looks like fun - nice letters   :t

in my viewer, i didn't see the IBM line-graphic chars
is that my viewer, or is that the font ?

by the way...
i wouldn't use a REG file to install a font
let the windows font manager do it for you (control panel)

EDIT: another question...
did you generate the font with an asm-written program ?

nidud

#48
deleted

Gunther

Hi nidud,

Quote from: nidud on October 17, 2013, 06:04:45 AM
http://fontforge.sf.net

Excellent link. Thank you.  :t

Gunther
You have to know the facts before you can distort them.

nidud

#50
deleted

nidud

#51
deleted

nidud

#52
deleted

pcMike

nidud, your SetConsoleSize procedure works very well for the Window Size, but how is it possible to also set the Screen Buffer Size of the Console?  Do I have to shell to the MODE command, or can this be done programmatically?

pcMike

nidud, I downloaded your two small windows console applications, and I see they do set both the Console Window Size, and the Console Buffer Size correctly... so it is possible after all. Oddly it did not change the Buffer Size of my Console when I used your SetConsoleSize proc.

Where can I find the following includes?
include conio.inc
include keyb.inc
include clip.inc
include stdio.inc

I see your Ascii.asm program calls SetConsoleSize, calls dlmodal, then calls SetConsoleSize a second time. I assume dlmodal must be in one of the missing includes.

pcMike

It occurred to me the include files would be part of DOSZip itself.
Now I'm stuck here:

C:\console\src\Ascii>\asmc\asmc ascii.asm
Doszip Macro Assembler Version 2.19
Portions Copyright (c) 1992-2002 Sybase, Inc. All Rights Reserved.

Assembling: ascii.asm

C:\console\src\Ascii>\masm32\bin\polink /SUBSYSTEM:CONSOLE /ALIGN:4096 /MERGE:.data=.text /MERGE:.rdata=.text ascii.obj
POLINK: fatal error: Invalid machine type in object 'ascii.obj'.

hutch--

Mike,

Its probably the wrong OBJ format, 32 bit PE code normally uses a 32 bit PE version, there used to be a 32 bit OMF object module but the assembler you are using may be producing a 16 bit OMF module that a 32 bit linker will not allow.

nidud

#57
deleted

pcMike

Thanks Hutch and nidud,

After pulling some hair, I got it working.