The NetBSD Project

CVS log for src/lib/libterminfo/termcap.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libterminfo

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.25 / (download) - annotate - [select for diffs], Tue Jan 31 21:11:24 2023 UTC (13 months, 3 weeks ago) by andvar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored) to selected 1.13 (colored)

fix few typos in comments.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Apr 5 14:53:39 2020 UTC (3 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.23: +4 -3 lines
Diff to previous 1.23 (colored) to selected 1.13 (colored)

Conditionalize a few more functions (hopefully fixing the build)

Revision 1.23 / (download) - annotate - [select for diffs], Fri Mar 27 17:39:53 2020 UTC (4 years ago) by christos
Branch: MAIN
Changes since 1.22: +4 -3 lines
Diff to previous 1.22 (colored) to selected 1.13 (colored)

Introduce a bunch of inline functions and utilities to avoid code duplication.

Revision 1.22 / (download) - annotate - [select for diffs], Thu May 4 09:42:23 2017 UTC (6 years, 10 months ago) by roy
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, is-mlppp-base, is-mlppp
Branch point for: phil-wifi
Changes since 1.21: +25 -21 lines
Diff to previous 1.21 (colored) to selected 1.13 (colored)

Clean up some compile warnings.

Revision 1.21 / (download) - annotate - [select for diffs], Mon May 1 18:39:02 2017 UTC (6 years, 10 months ago) by roy
Branch: MAIN
CVS Tags: prg-localcount2-base1
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored) to selected 1.13 (colored)

Whitespace police.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jan 11 20:53:52 2017 UTC (7 years, 2 months ago) by roy
Branch: MAIN
CVS Tags: prg-localcount2-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2
Changes since 1.19: +8 -8 lines
Diff to previous 1.19 (colored) to selected 1.13 (colored)

Fix some off by one issues with arraycount ..thanks coypu.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Apr 1 19:59:08 2016 UTC (7 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.18: +9 -6 lines
Diff to previous 1.18 (colored) to selected 1.13 (colored)

- if we are freeing cur_term, set it to NULL.
- preserve and free "last" properly.

$ cat foo.c
#include <stdio.h>
#include <termcap.h>

int
main(void)
{
	tgetent(NULL, "dumb");
	tgetent(NULL, "network");
	tgetflag("so");
	return 0;
}
$ cc foo.c -lterminfo
$ MALLOC_OPTIONS=J ./a.out
Boom.

XXX: pullup-7

Revision 1.18 / (download) - annotate - [select for diffs], Wed Nov 25 18:46:24 2015 UTC (8 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.17: +6 -3 lines
Diff to previous 1.17 (colored) to selected 1.13 (colored)

PR/50092: Rin Okuyama: Fix memory leak.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Nov 13 15:24:04 2011 UTC (12 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base, netbsd-7-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, agc-symver-base, agc-symver
Branch point for: netbsd-7-nhusb, netbsd-7
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored) to selected 1.13 (colored)

make use we don't touch memory past the end of the buffer. Pointed out
by tnozaki.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Oct 3 12:31:51 2011 UTC (12 years, 5 months ago) by roy
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored) to selected 1.13 (colored)

Correctly use ti_ instead of t_ for our extensions as per the man page.
Replace vtparm with tiparm.
tiparm is also non standard, but has been proposed at least.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Sep 16 18:51:44 2011 UTC (12 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.14: +8 -11 lines
Diff to previous 1.14 (colored) to selected 1.13 (colored)

PR/45370: Takehiko NOZAKI: termcap emulation tget{flag,num,str} should
work with non-NUL terminated strings.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Mar 18 10:42:54 2011 UTC (13 years ago) by roy
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp
Changes since 1.13: +55 -60 lines
Diff to previous 1.13 (colored)

Simplify some conversion by usig pre formatted strings and a function
to print a parameter.

Revision 1.13 / (download) - annotate - [selected], Fri Mar 11 13:28:52 2011 UTC (13 years ago) by christos
Branch: MAIN
Changes since 1.12: +3 -7 lines
Diff to previous 1.12 (colored)

revert OOPS change now that most of the reasons for tgoto to return NULL
have been eliminated.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Mar 10 10:17:19 2011 UTC (13 years ago) by roy
Branch: MAIN
Changes since 1.11: +157 -13 lines
Diff to previous 1.11 (colored) to selected 1.13 (colored)

Add support for translating the following termcap commands into terminfo:
  %B %D %r %2 %3 %d %+ %> %.
Fixes PR bin/44692.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Mar 7 00:27:51 2011 UTC (13 years ago) by christos
Branch: MAIN
Changes since 1.10: +7 -4 lines
Diff to previous 1.10 (colored) to selected 1.13 (colored)

Restore historical behavior of tgoto() to return "OOPS" on failure. This is
best for now because there are too many programs that don't check the return
value of it. Of course cursor motion commands from $TERMCAP have 0 chance
of working now, since their % escapes are not translated to terminfo. In
the window case %+ expects one param from the stack in the termcap case
and two in the terminfo so we barf. We need proper captoinfo handling for
the % escapes, like the one in ncurses. Hi Roy :-)

Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 12 12:49:27 2010 UTC (13 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.9: +4 -5 lines
Diff to previous 1.9 (colored) to selected 1.13 (colored)

PR/43961: YAMAMOTO Takashi: uninitialized variable in termcap.c
Remove dead code.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Sep 22 06:10:51 2010 UTC (13 years, 6 months ago) by roy
Branch: MAIN
Changes since 1.8: +6 -4 lines
Diff to previous 1.8 (colored) to selected 1.13 (colored)

Our API just uses typedefs, so don't use the struct symbol which will avoid
any potential conflicts with userland.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Jul 4 07:30:33 2010 UTC (13 years, 8 months ago) by roy
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored) to selected 1.13 (colored)

area is now used

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 4 15:35:26 2010 UTC (14 years ago) by roy
Branch: MAIN
Changes since 1.6: +18 -6 lines
Diff to previous 1.6 (colored) to selected 1.13 (colored)

Convert padding for unknown capabilities as well.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Mar 4 15:16:39 2010 UTC (14 years ago) by roy
Branch: MAIN
Changes since 1.5: +73 -2 lines
Diff to previous 1.5 (colored) to selected 1.13 (colored)

Convert padding and give terminfo some default assumptions about termcap.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Mar 2 14:11:11 2010 UTC (14 years ago) by roy
Branch: MAIN
Changes since 1.4: +16 -6 lines
Diff to previous 1.4 (colored) to selected 1.13 (colored)

Use _ti_get_token instead of strsep when parsing termcap entries.
This allows us to handle \E\ as a valid sequence.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Mar 1 11:02:31 2010 UTC (14 years, 1 month ago) by roy
Branch: MAIN
Changes since 1.3: +8 -2 lines
Diff to previous 1.3 (colored) to selected 1.13 (colored)

Escape , when converting to terminfo.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Feb 26 00:09:00 2010 UTC (14 years, 1 month ago) by roy
Branch: MAIN
Changes since 1.2: +177 -2 lines
Diff to previous 1.2 (colored) to selected 1.13 (colored)

Implement captoinfo so that we can convert $TERMCAP into $TERMINFO.
We don't currently map %> %B %D.
That means no conversion for regent100, hz1500, act4, act5, mime terms.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Feb 4 09:46:26 2010 UTC (14 years, 1 month ago) by roy
Branch: MAIN
Changes since 1.1: +3 -4 lines
Diff to previous 1.1 (colored) to selected 1.13 (colored)

Fix build issues on other hosts.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Feb 3 15:16:32 2010 UTC (14 years, 1 month ago) by roy
Branch: MAIN
Diff to selected 1.13 (colored)

Import my terminfo implementation.
This uses the ncurses terminal definitions.

OK: core@, jdc@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>