Textmode IDE: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | [[How to get the fpc ide running under Mac OS X]]\ | |
| 2 | 2 | ||
| 3 | 3 | Terminals, fonts, ESC codes, and why do I get all these funny characters: [[Terminal & Fonts]] | |
| 4 | 4 | ||
| 5 | 5 | Noticed TCRT does not give proper results in Darwin terminal.app. Using DEC control codes, some of them can be done. | |
| 6 | 6 | ||
| 7 | 7 | White on black: Write( ESC, '\[7m' ); Bright on black: Write( ESC, '\[7;1m' ); | |
| 8 | 8 | ||
| 9 | 9 | ## How to get a bigger textmode screen under Windows? | |
| 10 | 10 | ||
| 11 | 11 | Adapt the properties of the IDE shortcut (set a 7 bit wide font if needed), or, if you prefer to execute from the command line, make a batch file that contains: | |
| 12 | 12 | ||
| 13 | - | ||
| 14 | - | ||
| 13 | + | ```text | |
| 14 | + | MODE CON COLS=132 LINES=70 | |
| 15 | + | fp | |
| 16 | + | ``` | |
| 15 | 17 | ||
| 16 | 18 | ## How to change codepage locally under Windows? | |
| 17 | 19 | ||
| 18 | 20 | This has never been confirmed, but the sequence below was recommended to a Japanese IDE user who had the default codepage set to Japanese, while the IDE requires CP437 (Mantis 9649): | |
| 19 | 21 | ||
| 20 | 22 | - set the console font to Lucida Console | |
| 21 | 23 | - execute chcp 850 | |
| 22 | 24 | - start the IDE | |
| 23 | 25 | ||
| 24 | 26 | ## Physical Terminal (udev) problems | |
| 25 | 27 | ||
| 26 | 28 | From <http://bugs.freepascal.org/view.php?id=10758> : | |
| 27 | 29 | ||
| 28 | - | ||
| 29 | - | ||
| 30 | - | ||
| 30 | + | ```text | |
| 31 | + | There appears to be an additional wrinkle when using a user virtual terminal. | |
| 32 | + | Symptoms: The User Screen overwrites the IDE screen. | |
| 33 | + | Analysis: In ~/ide/fpusrscr.pas source code, in 'constructor TLinuxScreen.Init;', where FName = '/dev/vcsa/x' | |
| 34 | + | ``` | |
| 31 | 35 | ||
| 32 | - | ||
| 36 | + | ``` pascal | |
| 37 | + | TYFd:= fpOpen(FName, &666, O_RdWr); | |
| 38 | + | ``` | |
| 33 | 39 | ||
| 34 | - | ||
| 35 | - | ||
| 36 | - | ||
| 37 | - | ||
| 38 | - | ||
| 39 | - | ||
| 40 | - | ||
| 40 | + | ```text | |
| 41 | + | always returns a '-1' due to the standard udev permissions for /dev/vcc/a* . | |
| 42 | + | Brute force work-around: As root, chmod 666 /dev/vcc/a*" or edit /etc/udev/rules.d/50-udev.rules to make the permissions at boot: | |
| 43 | + | original: | |
| 44 | + | KERNEL=="vcsa[0-9]*", NAME="vcc/a%n", SYMLINK+="%k", GROUP="tty" | |
| 45 | + | to: | |
| 46 | + | KERNEL=="vcsa[0-9]*", NAME="vcc/a%n", SYMLINK+="%k", GROUP="tty", MODE="666" | |
| 47 | + | Other: Maybe there is an underlying incompatibility between grab_vcsa and udev ? | |
| 48 | + | ``` | |
| 41 | 49 | ||
| 42 | 50 | ## See also | |
| 43 | 51 | ||
| 44 | 52 | - [[Textmode IDE development]] | |
| 45 | 53 | ||
| 46 | 54 | --- | |
| 47 | 55 | *From the Free Pascal wiki, page "Textmode IDE", as it stood on 2022-01-28 after a change by Alextp, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
