![]() ![]() ![]() ![]() (I haven't yet tried it in my main program.) However, a couple of questions -ġ. Before I set a new FaceName, FontSize in procedure Set_console_fontsize, I want to save the current (original) values so that these can be restored when the program closes. In program ConsoleDemo that is included in the console.7z download, there are compiler directives -Īre they actually needed there or are they just redundant from the console.pas unit where they are also included?ģ. From my original post (code below), FontSize works correctly for FaceName 'Lucida Console' or 'Consolas'. That means that widestrings or UTF-8 encoded (ansi)strings will not work correctly.I tried 'Arial' but it just reverted to the system font. It is designed to work with single-byte character sets, where 1 char = 1 byte. The CRT unit stems from the TP/Dos area.The terminal is set in RAW mode, which will destroy most terminal emulation settings. On Linux or other Unix OSes, executing other programs that expect special terminal behaviour (using one of the special functions in the Linux unit) will not work.The use of the CRT unit and the graph unit may not always be supported.For similar reasons they are not usable as CGI-scripts for use with a webserver.Programs using the CRT unit will not be usable when input/output is being redirected on the command-line.There are some caveats when using the CRT unit: The functionality for both is the same, except that under Linux the use of an early implementation (versions 0.9.1 and earlier of the compiler) the CRT unit automatically cleared the screen at program startup. ![]() It works on the Linux console, and in xterm and rxvt windows under X-Windows. The unit was ported to Linux by Mark May and enhanced by Michael Van Canneyt and Peter Vreman. The unit was first written for Dos by Florian Klaempfl. This chapter describes the CRT unit for Free Pascal, under all of Dos, Linux and Windows. Reference for unit 'Crt' ĬRT - Turbo Pascal screen and keyboard handling unit ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |