> If you run the program twice, you'll see that you can "scroll back" even to
> what you typed in the first run of the program; This is clear proof that it
> is not the program itself which does that.
Ok. This somehow convinced me. Can I achieve the same thing in bash?
>> I compiled it in windows (FPC 2.4.0), run it in cmd.exe and I was
>> surprised that history of commands is working out of the box (by
>> pressing arrow UP).
>
> That is standard behaviour for most modern shells.
> The readln() function has nothing to do with libreadline.
>
> The problem you are
Hi.
I have simple console application:
program test;
var s : string;
begin
while s <> 'q' do
readln(s);
end.
I compiled it in windows (FPC 2.4.0), run it in cmd.exe and I was
surprised that history of commands is working out of the box (by
pressing arrow UP). I thought it is done automatic
>> You can check if there is output using NumBytesAvailable:
Ok, This thing now works (I've also try this but I "accidentaly"
checked NumBytesAvailable after read, it must be checked before read)
Thanks, It works now !!!
___
fpc-pascal maillist - fpc-
nux, it appears only on windows. Any
ideas?
2008/11/10 Vincent Snijders <[EMAIL PROTECTED]>:
> Dusan Halicky schreef:
>>>>
>>>> is there an mplayer.exe in a directory on the path (or windows
>>>> directory)?
>>
>> yes. (when I remove poUseP
>> is there an mplayer.exe in a directory on the path (or windows directory)?
yes. (when I remove poUsePipes the video plays normally)
>> Maybe you need to add poNoConsole?
I still can't see a video (nor audio) with this option, however it
helps a little (application dont freeze after end with t
Following code works in linux, but not in windows. In windows program
freeze, or I don't see mplayer. Thanks.
program bug;
{$mode objfpc}{$H+}
uses
Classes, SysUtils, Process;
begin
with TProcess.Create(nil) do
try
//Options := [];// this work on both Windows and Linux
Hi.
I use fpdoc to generate documentation. I want to be function
parameters documented also, But I affraid fpdoc doesn't support it
yet. Here is what I have in html documentation
function FooBar(
a: integer;
b: boolean
):variant;
Here is what I want:
function FooBar(
a: integer;
Is there any function which gives me local time depending on system
locale settings?
> I assume that the problem is that your main clock is set to GMT, so then you
> have 1 hour timezone + 1 hour summer time difference.
>
> IOW, you need to correct that result for time differences.
_
Hi.
I have this simple demo (in ubuntu, using fpc 2.2.0, locale is sk_SK.utf8):
program test;
uses SysUtils;
begin
writeln(DateTimeToStr(now));
end.
When I compile it and run it it print 13:44:
$ ./test
6-4-08 13:44:32
But the actual date is 15:44:
$ date
Ne apr 6 15:44:35 CEST 2008
What'
there any way how to turn on case sensitivity in FPC?
Thanks.
Dusan Halicky
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
11 matches
Mail list logo