FreeBSD Bugzilla – Attachment 9356 Details for
Bug 19190
patch to set history buffer size via vidcontrol(1)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.18 KB, created by
kbyanc
on 2000-06-11 04:30:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
kbyanc
Created:
2000-06-11 04:30:00 UTC
Size:
2.18 KB
patch
obsolete
>Index: vidcontrol.1 >=================================================================== >RCS file: /home/cvs/src/usr.sbin/vidcontrol/vidcontrol.1,v >retrieving revision 1.24 >diff -u -r1.24 vidcontrol.1 >--- vidcontrol.1 2000/03/01 14:07:45 1.24 >+++ vidcontrol.1 2000/06/10 21:18:13 >@@ -26,6 +26,7 @@ > .Op Fl c Ar appearance > .Op Fl d > .Op Fl f Ar size Ar file >+.Op Fl h Ar lines > .Op Fl i Cm adapter | mode > .Op Fl l Ar screen_map > .Op Fl L >@@ -137,6 +138,9 @@ > Used together with the > .Xr moused 8 > daemon for text mode cut & paste functionality. >+.It Fl h Ar lines >+Set the history buffer to >+.Ar lines . > .It Fl f Ar size Ar file > Load font > .Ar file >Index: vidcontrol.c >=================================================================== >RCS file: /home/cvs/src/usr.sbin/vidcontrol/vidcontrol.c,v >retrieving revision 1.32 >diff -u -r1.32 vidcontrol.c >--- vidcontrol.c 2000/01/12 12:30:33 1.32 >+++ vidcontrol.c 2000/06/10 20:47:07 >@@ -61,8 +61,8 @@ > fprintf(stderr, "%s\n%s\n%s\n%s\n", > "usage: vidcontrol [-r fg bg] [-b color] [-c appearance] [-d] [-l scrmap]", > " [-i adapter | mode] [-L] [-M char] [-m on|off]", >-" [-f size file] [-s number] [-t N|off] [-x] [mode]", >-" [fgcol [bgcol]] [show]"); >+" [-h lines] [-f size file] [-s number] [-t N|off] [-x]", >+" [mode] [fgcol [bgcol]] [show]"); > exit(1); > } > >@@ -547,6 +547,20 @@ > } > > void >+set_history_size(char *arg) >+{ >+ int l; >+ >+ l = (int)strtol(arg, NULL, 0); >+ if (l < 0) { >+ warnx("argument to -h must be greater than 0"); >+ return; >+ } >+ if (ioctl(0, CONS_HISTORY, &l) < 0) >+ warn("cannot set history size"); >+} >+ >+void > test_frame() > { > int i; >@@ -573,7 +587,7 @@ > info.size = sizeof(info); > if (ioctl(0, CONS_GETINFO, &info) < 0) > err(1, "must be on a virtual console"); >- while((opt = getopt(argc, argv, "b:c:df:i:l:LM:m:r:s:t:x")) != -1) >+ while((opt = getopt(argc, argv, "b:c:df:h:i:l:LM:m:r:s:t:x")) != -1) > switch(opt) { > case 'b': > set_border_color(optarg); >@@ -587,6 +601,9 @@ > case 'f': > load_font(optarg, > nextarg(argc, argv, &optind, 'f')); >+ break; >+ case 'h': >+ set_history_size(optarg); > break; > case 'i': > show_info(optarg);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19190
: 9356