code logs -> 2010 -> Sun, 05 Dec 2010< code.20101204.log - code.20101206.log >
--- Log opened Sun Dec 05 00:00:39 2010
00:07 Anno[Laptop] [annodomini@Nightstar-bea3d420.adsl.tpnet.pl] has quit [[NS] Quit: Warghleblarghle.]
00:18 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
00:56 You're now known as TheWatcher[T-2]
01:12 You're now known as TheWatcher[zZzZ]
04:36 Orthia [orthianz@ServerAdministrator.Nightstar.Net] has quit [Connection reset by peer]
04:49 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
04:50 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has joined #code
05:00 Taki^ [Taki@Nightstar-0816732d.consolidated.net] has quit [[NS] Quit: Fun, Protections & More!! For free!! Download MaGix « §nøw§târ-Infinitüm 1.4.3 » at http://www.magixproject.net]
05:19 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has quit [Connection reset by peer]
05:26 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has joined #code
05:49 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has quit [Connection reset by peer]
05:55 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has joined #code
05:55 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has quit [Connection reset by peer]
06:02 Stalker [Stalker@2C3C9C.B2A300.F245DE.859909] has quit [Ping timeout: 121 seconds]
06:03 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has joined #code
06:04 cpux is now known as shade_of_cpux
06:13 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has quit [Connection reset by peer]
06:20 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has joined #code
06:23 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has quit [Connection reset by peer]
06:38 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has joined #code
06:39 Stalker [Stalker@5E691D.FC7C16.9F8D82.34AC84] has joined #code
06:47 Stalker [Stalker@5E691D.FC7C16.9F8D82.34AC84] has quit [Ping timeout: 121 seconds]
06:53 celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
07:01 Stalker [Stalker@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
07:04 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has quit [Client closed the connection]
07:12 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has joined #code
07:20 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has quit [Client closed the connection]
07:27 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has joined #code
07:31 Anno[Laptop] [annodomini@Nightstar-46df44a9.adsl.tpnet.pl] has joined #code
07:46 McMartin [mcmartin@Nightstar-5d6d0af3.pltn13.sbcglobal.net] has quit [[NS] Quit: kernel upgrade]
07:53 McMartin [mcmartin@Nightstar-5d6d0af3.pltn13.sbcglobal.net] has joined #code
07:53 mode/#code [+o McMartin] by Reiver
08:03 Reiver [reaverta@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
08:03 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has quit [Ping timeout: 121 seconds]
08:04 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has joined #code
08:06 Reiver [reaverta@ServerAdministrator.Nightstar.Net] has joined #code
08:06 mode/#code [+qo Reiver Reiver] by ChanServ
08:30 Ortiha [orthianz@Nightstar-55b4aa8a.xnet.co.nz] has joined #code
08:32 Orthia [orthianz@Nightstar-25ca88b8.xnet.co.nz] has quit [Ping timeout: 121 seconds]
08:46
< Anno[Laptop]>
Is there a way to resize the terminal with PyCurses?
08:53 Ortiha [orthianz@Nightstar-55b4aa8a.xnet.co.nz] has quit [Client closed the connection]
08:54 * Anno[Laptop] also curses pycurses. Why couldn't it have printw()? And resizeterm(), while it's at it.
08:59 Orthia [orthianz@Nightstar-55b4aa8a.xnet.co.nz] has joined #code
08:59 Orthia [orthianz@Nightstar-55b4aa8a.xnet.co.nz] has quit [Client closed the connection]
09:07 Orthia [orthianz@Nightstar-c6f9425b.xnet.co.nz] has joined #code
10:03 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
10:09 Rhamphoryncus [rhamph@Nightstar-473f8685.abhsia.telus.net] has quit [Client exited]
10:12 You're now known as TheWatcher
10:37 Stalker [Stalker@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
10:46 Stalker [Stalker@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
10:47 * TheWatcher readsup, suggests Anno larn Perl and use the Curses module instead~
11:02
< Anno[Laptop]>
I know Perl somewhat.
11:09
< Anno[Laptop]>
I am unsure whether your suggestion is serious.
11:23 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
11:42
<@TheWatcher>
As far as I'm aware, perl's curses module basically gives you an almost complete interface to the curses library, with a few functions unified to make life easier. I've never actually used it, but before now I've run into discussions of it, and it is apparently pretty decent if you know curses.
12:36 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Connection closed]
13:25
< Anno[Laptop]>
What's a good IDE for Perl?
13:28
<@TheWatcher>
Buggered if I know, I only ever use emacs.
13:29
<@TheWatcher>
(I don't do IDEs, for any language, so..)
13:39 Stalker [Stalker@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
14:05 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
--- Log closed Sun Dec 05 14:12:28 2010
--- Log opened Sun Dec 05 14:12:41 2010
14:12 TheWatcher [chris@Nightstar-b4529b0c.zen.co.uk] has joined #code
14:12 Irssi: #code: Total of 21 nicks [5 ops, 0 halfops, 0 voices, 16 normal]
14:12 mode/#code [+o TheWatcher] by Reiver
14:13 Irssi: Join to #code was synced in 53 secs
--- Log closed Sun Dec 05 14:43:14 2010
--- Log opened Sun Dec 05 14:43:18 2010
14:43 TheWatcher [chris@Nightstar-b4529b0c.zen.co.uk] has joined #code
14:43 Irssi: #code: Total of 21 nicks [5 ops, 0 halfops, 0 voices, 16 normal]
14:43 mode/#code [+o TheWatcher] by Reiver
14:44 Irssi: Join to #code was synced in 51 secs
14:51 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has joined #code
14:58 celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has joined #code
15:01 * Anno[Laptop] is dissatisfied with his options here. C/C++ is hard to improvise in and lacks serialization, Java doesn't have console handling worth a good goddamn, Python's curses implementation is balls, and Perl is, well, Perl.
15:07
< celticminstrel>
C++ does have serialization, with Boost.
15:07
< celticminstrel>
And Curses in C is even worse than in Python.
15:07 Stalker [Stalker@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
15:11
< Anno[Laptop]>
My experience with curses in C has been generally positive.
15:12
< celticminstrel>
Well, it's harder to use, anyway. Maybe it works better though.
15:15
< gnolam>
What are you attempting to do, exactly?
15:16
< Anno[Laptop]>
Console game.
15:24
< gnolam>
... I assume you mean console as in "terminal" and not as in "Nintendo". :)
15:24
< gnolam>
Roguelike?
15:26
< Anno[Laptop]>
Not a roguelike. I have something in mind that's more of a cross between LCS and JA.
15:26
< gnolam>
LCS?
15:27
< Anno[Laptop]>
Liberal Crime Squad.
15:34 Stalker [Stalker@3A600C.A966FF.5BF32D.8E7ABA] has quit [Ping timeout: 121 seconds]
15:56
<@ToxicFrog>
Anno[Laptop]: what's wrong with Python's curses binding?
15:58
< Anno[Laptop]>
Not allowing me to write to the bottom-right corner of the screen, and no apparent way to resize the terminal.
16:01
<@ToxicFrog>
What happens when you window.addchr() in the bottom right?
16:02
<@ToxicFrog>
addch(), sorr5y
16:02
< Anno[Laptop]>
Curses returns ERR.
16:06
<@ToxicFrog>
I suspect you're using it wrong, then, because you most certainly can place characters anywhere on the screen using pycurses.
16:06
<@ToxicFrog>
Pastebin a minimal test case?
16:08
<@ToxicFrog>
As for resizing the terminal from curses, I'm pretty sure that's not possible in C, either; as a general rule, tty programs either adapt to the given screen size, assume 80x24, or rely on the user resizing the terminal to the correct size (possibly automatically as part of a launcher script).
16:09 Stalker [Stalker@26ECB6.A4B64C.298B52.D80DA0] has joined #code
16:15 cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has quit [[NS] Quit: ChatZilla 0.9.86 [Firefox 3.6.12/20101026210630]]
16:16
< Anno[Laptop]>
http://pastie.org/1349625
16:18 Stalker [Stalker@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
16:29
< celticminstrel>
Yeah, pretty sure you can't change the size of a console window programmatically, at least not with curses.
16:30 cpux [chatzilla@Nightstar-c978de34.dyn.optonline.net] has joined #code
16:45 Attilla [Some.Dude@Nightstar-d71585e6.threembb.co.uk] has joined #code
16:45 mode/#code [+o Attilla] by Reiver
16:56
<@ToxicFrog>
Anno[Laptop]: http://pastie.org/1349708
16:56
<@ToxicFrog>
This is not a problem with Python's curses binding, but with the underlying curses library.
16:56
<@ToxicFrog>
What is happening is that when you try to write to the lower right corner, it tries to move the cursor off the end of the last line.
16:57
<@ToxicFrog>
if scrollok is set, this causes it to scroll one line.
16:57
<@ToxicFrog>
If it is not set, this cannot be done and it returns ERR.
16:57
<@ToxicFrog>
The solution in both C and Python is to ignore the error it reports.
16:58
<@ToxicFrog>
(the character will be correctly written to the screen, the error is only related to the cursor positioning afterwards)
16:58
<@ToxicFrog>
The code I pasted demonstrates this, along with the use of getmaxyx to adapt to terminal size and curses.wrapper to obviate the need for a try/finally cleanup block.
17:09
< Anno[Laptop]>
Cool. Thanks.
17:41 Stalker [Stalker@26ECB6.A4B64C.298B52.D80DA0] has joined #code
18:04 kwsn [kwsn@Nightstar-ca9721ae.dyn.centurytel.net] has joined #code
20:06 Rhamphoryncus [rhamph@Nightstar-473f8685.abhsia.telus.net] has joined #code
20:59 Stalker [Stalker@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
21:32 Stalker [Stalker@5E691D.FC7C16.75EF63.CBA0D3] has joined #code
21:45 Stalker [Stalker@5E691D.FC7C16.75EF63.CBA0D3] has quit [Ping timeout: 121 seconds]
22:08 Stalker [Stalker@2C3C9C.B2A300.F245DE.859909] has joined #code
23:04 Tarinaky [Tarinaky@Nightstar-f349ca6d.plus.com] has quit [Connection closed]
23:29 You're now known as TheWatcher[T-2]
23:29 Ortiha [orthianz@Nightstar-c6f9425b.xnet.co.nz] has joined #code
23:30 Netsplit *.net <-> *.split quits: Orthia, SmithKurosaki, @McMartin, celticminstrel, @Derakon, PinkFreud
23:30 Netsplit over, joins: PinkFreud, Orthia, @Derakon, SmithKurosaki, @McMartin, celticminstrel
23:30 Orthia [orthianz@Nightstar-c6f9425b.xnet.co.nz] has quit [Ping timeout: 121 seconds]
23:33 You're now known as TheWatcher[zZzZ]
23:37 Netsplit *.net <-> *.split quits: celticminstrel, SmithKurosaki, @McMartin, @Derakon, PinkFreud
23:38 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
23:38 Derakon [Derakon@Nightstar-cfae48c3.ca.comcast.net] has joined #code
23:38 SmithKurosaki [smith@Nightstar-8ff23d84.dsl.teksavvy.com] has joined #code
23:38 McMartin [mcmartin@Nightstar-5d6d0af3.pltn13.sbcglobal.net] has joined #code
23:38 ServerMode/#code [+oo Derakon McMartin] by *.Nightstar.Net
23:39 McMartin [mcmartin@Nightstar-5d6d0af3.pltn13.sbcglobal.net] has quit [Ping timeout: 121 seconds]
23:39 McMartin [mcmartin@Nightstar-5d6d0af3.pltn13.sbcglobal.net] has joined #code
23:39 mode/#code [+o McMartin] by Reiver
23:39 SmithKurosaki [smith@Nightstar-8ff23d84.dsl.teksavvy.com] has quit [Ping timeout: 121 seconds]
23:39 SmithKurosaki [smith@Nightstar-8ff23d84.dsl.teksavvy.com] has joined #code
23:49 Anno[Laptop] [annodomini@Nightstar-46df44a9.adsl.tpnet.pl] has quit [[NS] Quit: EXIT LITE.]
--- Log closed Mon Dec 06 00:00:40 2010
code logs -> 2010 -> Sun, 05 Dec 2010< code.20101204.log - code.20101206.log >