[#15820] maillib with big base64 — kikutani@...
maillib を使いはじめましたが、マルチパートで
[#15828] Ruby/Gtk for cygwin インストールについて — otokita@...
Ruby, 本 ML には大変お世話になっております.
はじめまして、Nobuaki Kannoと申します。
Nobuaki Kannoです。
[#15839] Windows95 で Tk — H サイトウ <HiroshiSaito@...>
前橋です。
まつもと ゆきひろです
前橋です。
まつもと ゆきひろです
[#15865] mime.rb rev 1.4 — "NAKAMURA, Hiroshi" <nakahiro@...>
なひです.
なひです.
[#15873] UDPsocket#recvfrom の API 変更について — Toshihiko SHIMOKAWA / 下川俊彦 <toshi@...>
ruby-dev で始まった話ですが、こちらに振ります。
まつもと ゆきひろです
福嶋です。
まつもと ゆきひろです
[#15894] RE: difference of system() between UNIX and Win dows — 助田 雅紀 <masaki.suketa@...>
助田です.
[#15899] ruby/tk on cygwin /w Tk8.1 — たむら けんいち <tamura-r@...>
たむら です。
[#15902] sybase module — Hisakuni FUJIMOTO <hisa@...>
藤本です、こんにちは。
こんばんは。三並です。
藤本です。
[#15911] Re: [ruby-talk:00563] Date class and rfc822 — Wakou Aoyama <wakou@...>
青山です。
まつもと ゆきひろです
[#15920] Re: [][-n,n] — Inaba Hiroto <inaba@...>
From: Wakou Aoyama <wakou@fsinet.or.jp>
[#15927] Ruby 1.3.7 — Yukihiro Matsumoto <matz@...>
Ruby 1.3.7 is out, check out:
渡辺哲也です。
まつもと ゆきひろです
渡辺哲也です。
[#15944] Ruby 1.3.7 — Yukihiro Matsumoto <matz@...>
Ruby 1.3.7 is repacked, check out:
わたなべです.
なひです.
[#15955] echo しない readline — m_seki@...
ごとけんです
まつもと ゆきひろです
[#15966] あしたのために(その一) — kikutani@...
ふと頭に浮かんだフレーズ:
[#16002] how to know binary file — kikutani@...
あるファイルがバイナリファイルかどうか知る方法というのはたしか
わたなべです.
On Tue, 10 Aug 1999 11:06:25 +0900,
わたなべです.
On Tue, 10 Aug 1999 11:32:12 +0900,
わたなべです.
On Tue, 10 Aug 1999 11:56:55 +0900,
On Tue, 10 Aug 1999 13:55:59 +0900,
ごとけんです
ごとけんです
On Wed, 11 Aug 1999 09:55:16 +0900,
わたなべです.
ごとけんです
ごとけんです
[#16095] rd2html — Toshiro Kuwabara <toshirok@...3.so-net.ne.jp>
はじめまして、Toshと申します。
まつもと ゆきひろです
Toshです。
ごとけんです
Toshです。
ごとけんです
Toshです。
まつもと ゆきひろです
Toshです。ひさしぶりに英作文してへろへろ。
ごとけんです
Toshです。
[#16118] Ruby 1.4.0 — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです
小松です。
まつもと ゆきひろです
青山です。
松尾です。
青山です。
まつもと ゆきひろです
なひです.
松尾です。
[#16153] ANN: testsupp 0.2 released. — gotoken@... (GOTO Kentaro)
ごとけんです
[#16157] rdtool-0.2.1 — Toshiro Kuwabara <toshirok@...3.so-net.ne.jp>
Toshです。
[#16158] maillib? 0.5.0 — Minero Aoki <aamine@...>
あおきです。
まつもと ゆきひろです
あおきです。とりあえずlistに送ります。
まつもと ゆきひろです
あおきです。
まつもと ゆきひろです
あおきです。返事遅くなってすみません。
あおきです。
まつもと ゆきひろです
あおきです。
まつもと ゆきひろです
あおきです。
青山です。
青山です。
あおきです。
青山です。
なかだです。
あおきです。
青山です。
あおきです。
青山です。
あおきです。
あおきです。
[#16209] year of parsedate — kikutani@...
parsedateって最近仕様が変わったのかしら。
[#16216] timeout.rb — wakou@...
青山です。
[#16233] C source to HTML converter — ymaekawa@...
前川と申します。
[#16237] bind(2) IRIX5.3(Indy) — Masatoshi SEKI <m_seki@...>
[#16242] ruby から MS SQL Server へのアクセス — Keisuke Minami <keisuke@...>
こんばんは。三並です。
[#16250] ruby hacking guide — Minero Aoki <aamine@...>
あおきです。
まつもと ゆきひろです
[#16268] matrix bug — Takashi Shimizu <simtak@...>
清水@biglobeです。
[#16297] Ruby/GTK 0.21 released — Hiroshi Igarashi <igarashi@...>
いがらし%Ruby/GTKメンテナです。
[#16302] printf の $ について — "HIRATA Naoto" <hirata-naoto@...>
平田です.
わたなべです.
まつもと ゆきひろです
平田です.わたなべさん,木村さん,まつもとさん,えぐちさん,
えぐち@エスアンドイー です。
[#16341] GetoptLong#each — kjana@... (YANAGAWA Kazuhisa)
GetoptLong#each で何か一回余分にまわって GetoptLong オブジェクトのイン
[#16351] executable statements in class def — kikutani@...
クラスの定義の中はメソッドとか、定数とかの定義だけかと思ったら
[#16359] ruby1.4.0 on BSD/OS 4.0 — Yamada Kenji <kyamada@...>
わたなべです.
わたなべです.
[#16366] ruby on Compaq — Shugo Maeda <shugo@...>
前田です。
重弘です.
[#16371] jcode.rb String#tr! — TADA Tadashi <sho@...>
多田@S.P.C.です。
わたなべです.
まつもと ゆきひろです
多田@S.P.C.です。
[ruby-list:15969] Re: termios
ごとけんです
In message "[ruby-list:15968] Re: termios"
on 99/08/08, WATANABE Hirofumi <eban@os.rim.or.jp> writes:
>termios とはやまだあきらさんの ruby-termios-module のことですか?
そうです。
>:それはともかく、termios がmakeできません。rename.rbしないと
>:いけないのは別にしても、struct termios が違うようです。
>
>普通 termios には c_line はなくて termio にはあるから
>4.4BSD系 は POSIX に忠実ってことかな.
なるほど。
>というわけで termios ってことなら c_line は外しちゃったほうがいいと
>思います.
外してみました。どなたかテストお願いします。
test3.rbがわたなべさんの書かれた stty -echo 相当の
もの[ruby-list:15968]です。
-- gotoken
ftp://ftp.arika.org/pub/Tools/Ruby/ruby-termios-module-0.0.3.tar.gz
からのパッチです。
Attachments (1)
diff -u1rN ruby-termios-module.orig/MANIFEST ruby-termios-module/MANIFEST
--- ruby-termios-module.orig/MANIFEST Mon Aug 9 08:12:36 1999
+++ ruby-termios-module/MANIFEST Mon Aug 9 08:02:54 1999
@@ -7 +7,2 @@
test2.rb
+test3.rb
diff -u1rN ruby-termios-module.orig/termios.c ruby-termios-module/termios.c
--- ruby-termios-module.orig/termios.c Fri Feb 19 00:09:16 1999
+++ ruby-termios-module/termios.c Mon Aug 9 07:53:27 1999
@@ -25,9 +25,9 @@
int i;
- c_cc = ary_new2(NCCS);
+ c_cc = rb_ary_new2(NCCS);
for (i = 0; i < NCCS; i++) {
- ary_push(c_cc, INT2FIX(t->c_cc[i]));
+ rb_ary_push(c_cc, INT2FIX(t->c_cc[i]));
}
- return struct_new(sTermios,
+ return rb_struct_new(sTermios,
INT2FIX(t->c_iflag),
@@ -36,3 +36,2 @@
INT2FIX(t->c_lflag),
- INT2FIX(t->c_line),
c_cc,
@@ -55,3 +54,3 @@
} else {
- TypeError("wrong structure value %s (expected Fixnum or Nil)",
+ rb_raise(rb_eTypeError, "wrong structure value %s (expected Fixnum or Nil)",
name);
@@ -72,10 +71,9 @@
t->c_lflag = rb_Termios_to_termios0(RSTRUCT(rt)->ptr[3], "c_lflag");
- t->c_line = rb_Termios_to_termios0(RSTRUCT(rt)->ptr[4], "c_line");
- for (i = 0; i < RARRAY(RSTRUCT(rt)->ptr[5])->len; i++) {
+ for (i = 0; i < RARRAY(RSTRUCT(rt)->ptr[4])->len; i++) {
sprintf(c_cc, "c_cc[%d]", i);
- t->c_cc[i] = rb_Termios_to_termios0(RARRAY(RSTRUCT(rt)->ptr[5])->ptr[i],
+ t->c_cc[i] = rb_Termios_to_termios0(RARRAY(RSTRUCT(rt)->ptr[4])->ptr[i],
c_cc);
}
- cfsetispeed(t, rb_Termios_to_termios0(RSTRUCT(rt)->ptr[6], "c_ispeed"));
- cfsetospeed(t, rb_Termios_to_termios0(RSTRUCT(rt)->ptr[7], "c_ospeed"));
+ cfsetispeed(t, rb_Termios_to_termios0(RSTRUCT(rt)->ptr[5], "c_ispeed"));
+ cfsetospeed(t, rb_Termios_to_termios0(RSTRUCT(rt)->ptr[6], "c_ospeed"));
@@ -105,3 +103,3 @@
if (tcgetattr(fileno(fptr->f), &t) < 0) {
- Fail("can't get terminal parameters (%s)", strerror(errno));
+ rb_raise(rb_eRuntimeError, "can't get terminal parameters (%s)", strerror(errno));
}
@@ -132,3 +130,3 @@
if (strcmp(type, "Struct::Termios") != 0) {
- TypeError("wrong argument type %s (expected Struct::Termios)",
+ rb_raise(rb_eTypeError, "wrong argument type %s (expected Struct::Termios)",
type);
@@ -140,3 +138,3 @@
if (tcsetattr(fileno(fptr->f), FIX2INT(opt), &t) < 0) {
- Fail("can't set terminal parameters (%s)", strerror(errno));
+ rb_raise(rb_eRuntimeError, "can't set terminal parameters (%s)", strerror(errno));
}
@@ -157,3 +155,3 @@
if (tcsendbreak(fileno(fptr->f), FIX2INT(duration)) < 0) {
- Fail("can't transmits break (%s)", strerror(errno));
+ rb_raise(rb_eRuntimeError, "can't transmits break (%s)", strerror(errno));
}
@@ -173,3 +171,3 @@
if (tcdrain(fileno(fptr->f)) < 0) {
- Fail("can't drain (%s)", strerror(errno));
+ rb_raise(rb_eRuntimeError, "can't drain (%s)", strerror(errno));
}
@@ -193,3 +191,3 @@
queue_selector != TCIOFLUSH) {
- TypeError("wrong argument value %s (expected Termios::TCIFLUSH, Termios::TCOFLUSH or Termios::TCIOFLUSH)",
+ rb_raise(rb_eTypeError, "wrong argument value %s (expected Termios::TCIFLUSH, Termios::TCOFLUSH or Termios::TCIOFLUSH)",
queue_selector);
@@ -199,3 +197,3 @@
if (tcflush(fileno(fptr->f), queue_selector) < 0) {
- Fail("can't flush (%s)", strerror(errno));
+ rb_raise(rb_eRuntimeError, "can't flush (%s)", strerror(errno));
}
@@ -220,3 +218,3 @@
action != TCION) {
- TypeError("wrong argument value %s (expected Termios::TCOOFF, Termios::TCOON, Termios::TCIOFF or Termios::TCION)",
+ rb_raise(rb_eTypeError, "wrong argument value %s (expected Termios::TCOOFF, Termios::TCOON, Termios::TCIOFF or Termios::TCION)",
action);
@@ -226,3 +224,3 @@
if (tcflow(fileno(fptr->f), action) < 0) {
- Fail("can't control transmitting data flow (%s)", strerror(errno));
+ rb_raise(rb_eRuntimeError, "can't control transmitting data flow (%s)", strerror(errno));
}
@@ -243,3 +241,3 @@
if (pid = tcgetpgrp(fileno(fptr->f)) < 0) {
- Fail("can't get process group id (%s)", strerror(errno));
+ rb_raise(rb_eRuntimeError, "can't get process group id (%s)", strerror(errno));
}
@@ -261,3 +259,3 @@
if (tcsetpgrp(fileno(fptr->f), FIX2INT(pgrpid)) < 0) {
- Fail("can't set process group id (%s)", strerror(errno));
+ rb_raise(rb_eRuntimeError, "can't set process group id (%s)", strerror(errno));
}
@@ -275,12 +273,12 @@
VALUE c_iflag, c_oflag, c_cflag, c_lflag,
- c_line, c_cc, c_ispeed, c_ospeed;
+ c_cc, c_ispeed, c_ospeed;
int i;
- rb_scan_args(argc, argv, "08",
+ rb_scan_args(argc, argv, "07",
&c_iflag, &c_oflag, &c_cflag, &c_lflag,
- &c_line, &c_cc, &c_ispeed, &c_ospeed);
+ &c_cc, &c_ispeed, &c_ospeed);
if (NIL_P(c_cc)) {
- c_cc = ary_new2(NCCS);
+ c_cc = rb_ary_new2(NCCS);
for (i = 0; i < NCCS; i++) {
- ary_push(c_cc, Qnil);
+ rb_ary_push(c_cc, Qnil);
}
@@ -290,5 +288,5 @@
- return struct_new(sTermios,
+ return rb_struct_new(sTermios,
c_iflag, c_oflag, c_cflag, c_lflag,
- c_line, c_cc, c_ispeed, c_ospeed);
+ c_cc, c_ispeed, c_ospeed);
}
@@ -312,3 +310,3 @@
- sTermios = struct_define("Termios",
+ sTermios = rb_struct_define("Termios",
"c_iflag", /* input modes */
@@ -317,3 +315,2 @@
"c_lflag", /* local modes */
- "c_line", /* line discipline */
"c_cc", /* control chars */
diff -u1rN ruby-termios-module.orig/test1.rb ruby-termios-module/test1.rb
--- ruby-termios-module.orig/test1.rb Thu Feb 18 02:24:21 1999
+++ ruby-termios-module/test1.rb Mon Aug 9 07:58:41 1999
@@ -6,3 +6,3 @@
-RESCUE = Termios::new_termios(1280, 5, 3261, 35387, 0,
+RESCUE = Termios::new_termios(1280, 5, 3261, 35387,
[3, 28, 127, 21, 4, 0, 1, 0, 17,
diff -u1rN ruby-termios-module.orig/test3.rb ruby-termios-module/test3.rb
--- ruby-termios-module.orig/test3.rb Thu Jan 1 09:00:00 1970
+++ ruby-termios-module/test3.rb Mon Aug 9 08:15:26 1999
@@ -0,0 +1,13 @@
+# shadows input then reports [ruby-list:15968]
+require 'termios'
+include Termios
+
+oldt = getattr($stdin)
+newt = oldt.dup
+newt.c_lflag &= ~ECHO
+setattr($stdin, TCSANOW, newt)
+print "noecho> "
+a = $stdin.gets
+setattr($stdin, TCSANOW, oldt)
+print "\n"
+p a