Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rutgers!cbmvax!cbmehq!cbmfra!swinjm!forgeas From: forgeas@swinjm.UUCP (Jean-Michel Forgeas) Newsgroups: comp.sys.amiga.programmer Subject: Re: Limiting the console to a rectangle in a larger window. Message-ID: <18c5d24b.ARN0b37@swinjm.UUCP> Date: 4 Mar 91 09:20:11 GMT References: <1991Mar3.161212.18235@IRO.UMontreal.CA> Reply-To: forgeas@swinjm.UUCP (Jean-Michel Forgeas) Followup-To: comp.sys.amiga.programmer Organization: The Software Winery Lines: 23 In article <1991Mar3.161212.18235@IRO.UMontreal.CA>, Serge Simard writes: > I have a window containing 3 lists gadgets at the top taking > half of window and i want to setup a console window in the > bottom half (you guessed it, it is a smalltalk browser :-) ). This can be a part of what you want: //-----------open your window window = OpenWindow( newwindow ); //-----------attach a console to your window WriteMsg->io_Data = window; WriteMsg->io_Length = sizeof(*window); OpenDevice( "console.device", 0, WriteMsg, 0 ); //-----------resize the console into the window WriteCon( "\x9b\x38\x78" ); /* 8 columns from left */ WriteCon( "\x9b\x31\x32\x79" ); /* 12 lines from top */ -- \___/ Jean-Michel Forgeas \-/ cbmvax!cbmehq!cbmfra!swinjm!forgeas | The Software Winery -^- And, where is the universe ?