Search found 25 matches
- 26 May 2023 18:14
- Forum: Visual Prolog
- Topic: Do I have to uninstall vp 10.01, in order to upgrade to 10.02?
- Replies: 4
- Views: 96
Re: Do I have to uninstall vp 10.01, in order to upgrade to 10.02?
Ok, thanks chief.
- 24 May 2023 14:24
- Forum: Visual Prolog
- Topic: Do I have to uninstall vp 10.01, in order to upgrade to 10.02?
- Replies: 4
- Views: 96
Re: Do I have to uninstall vp 10.01, in order to upgrade to 10.02?
Thanks, but let me change the question to what my actual point was. I wasn't clear. Will the 10.02 setup replace/overwrite 10.01, or do I have to uninstall 10.01 first? I don't need multiple version, I just want the most recent version. My concern is that if I uninstall 10.01, I will have to purchas...
- 20 May 2023 0:58
- Forum: Visual Prolog
- Topic: Do I have to uninstall vp 10.01, in order to upgrade to 10.02?
- Replies: 4
- Views: 96
Do I have to uninstall vp 10.01, in order to upgrade to 10.02?
Hi,
I just downloaded the setup for 10.02. It says I have to install 10.01 in order to proceed.
One more question: Pie hasn't changed in the past couple of years, correct? I don't need to recompile it, I think.
I just downloaded the setup for 10.02. It says I have to install 10.01 in order to proceed.
One more question: Pie hasn't changed in the past couple of years, correct? I don't need to recompile it, I think.
- 3 Feb 2022 16:36
- Forum: Visual Prolog
- Topic: Row equivalent to getConsoleWidth()
- Replies: 4
- Views: 6496
Re: Row equivalent to getConsoleWidth()
Perfect, thanks Thomas.
- 3 Feb 2022 15:17
- Forum: Visual Prolog
- Topic: Row equivalent to getConsoleWidth()
- Replies: 4
- Views: 6496
Re: Row equivalent to getConsoleWidth()
Thanks Thomas, I'm familiar with the Properties dialog, but don't know how to get the maximum number of rows programatically. This is clear in other languages ; sometimes it's something like MaxColumn() and MaxRow() or something similar. If we're doing a grid for example, we need to know the maximum...
- 3 Feb 2022 1:20
- Forum: Visual Prolog
- Topic: Row equivalent to getConsoleWidth()
- Replies: 4
- Views: 6496
Row equivalent to getConsoleWidth()
Hi, Got one more question for the week, and that should be enough to play with for the next few days, and learn by trial & error. I'm trying to build a function similar to the Windows console FillConsoleOutputCharacter(). We have the method of getting the maximum number of characters in a row, t...
- 3 Feb 2022 1:09
- Forum: Visual Prolog
- Topic: Console colors - number reference, and setting background.
- Replies: 5
- Views: 3209
Re: Console colors - number reference, and setting background.
Freedos has a respectable following. There are hobbyists who still dabble there, and they work with C or Pascal and other legacy languages. I'll bet there are still some Fortran hobbyists. There are languages that are almost 100% compatible between the Dos version and the Windows version. Even one s...
- 2 Feb 2022 14:42
- Forum: Visual Prolog
- Topic: Console colors - number reference, and setting background.
- Replies: 5
- Views: 3209
Re: Console colors - number reference, and setting background.
Thanks, Thomas. I'll be able to use some of this right away. Can't thank you enough. Yeah, I read about the Virtual Terminal plans, earlier in the week. I didn't get that the Console Api would be abandoned anytime soon. It's not only Win32 that uses the console, it's also some .net apps. For example...
- 2 Feb 2022 10:09
- Forum: Visual Prolog
- Topic: Console colors - number reference, and setting background.
- Replies: 5
- Views: 3209
Console colors - number reference, and setting background.
Hi, 2 questions related to colors in the console - 1) Where is the list of colors and intensities? For now, I'm playing with setTextAttribute( 1, 1 ), which is obviously blue. Is there a specific reference in the .chm help, or in the wiki? So far, from trial & error, I have this: constants con_b...
- 2 Feb 2022 10:05
- Forum: Visual Prolog
- Topic: Example of a domains declaration of a string list
- Replies: 4
- Views: 2569
Re: Example of a domains declaration of a string list
Ok, thanks Thomas. Got another question, related to the console. Will open another thread.
- 2 Feb 2022 0:51
- Forum: Visual Prolog
- Topic: Example of a domains declaration of a string list
- Replies: 4
- Views: 2569
Re: Example of a domains declaration of a string list
string_list. Thanks, Harrison.
Turns out this usage was deprecated, but VP fixed it immediately to
Turns out this usage was deprecated, but VP fixed it immediately to
Code: Select all
string*
Harrison Pratt wrote: ↑1 Feb 2022 20:50 Perhaps something like this:
Code: Select all
domains colorListDOM = string_list. constants colorList : colorListDOM = ["red", "blue", "green"].
- 1 Feb 2022 15:45
- Forum: Visual Prolog
- Topic: Example of a domains declaration of a string list
- Replies: 4
- Views: 2569
Example of a domains declaration of a string list
Hi, On the Lists and Recursion page Lists and Recursion , it uses an example domains llist = l(list); i(integer); c(char); s(string). % the functors are l, i, c, and s that applies to the list [i(2), i(9), l([s("food"), s("goo")]), s("new")] What if we have just a list ...
- 31 Jan 2022 20:43
- Forum: Visual Prolog
- Topic: How to initialize the console for ansi or ascii?
- Replies: 4
- Views: 2734
Re: How to initialize the console for ansi or ascii?
I know, thanks Thomas.
Thomas Linder Puls wrote: ↑31 Jan 2022 9:53 I will still think it is a bad choice to not to choose utf8 (plain ANSI/ASCII characters are a subset of utf8).
- 29 Jan 2022 1:34
- Forum: Visual Prolog
- Topic: How to use the structure CursorPosition in setLocation
- Replies: 1
- Views: 1919
Re: How to use the structure CursorPosition in setLocation
Got it, from console.pro:
Code: Select all
setLocation(coord(5, 10))
- 27 Jan 2022 2:30
- Forum: Visual Prolog
- Topic: How to use the structure CursorPosition in setLocation
- Replies: 1
- Views: 1919
How to use the structure CursorPosition in setLocation
Hi,
I know these aren't simple parameters, as in
setLocation(Row, Column)
, but I don't know how to write the CursorPosition structure.
So if we wanted to position the cursor at (5, 10), how would we do that?
Thanks for your assistance so far, Thomas.
I know these aren't simple parameters, as in
setLocation(Row, Column)
, but I don't know how to write the CursorPosition structure.
So if we wanted to position the cursor at (5, 10), how would we do that?
Thanks for your assistance so far, Thomas.