Skip to content

Commit c19a026

Browse files
committed
stdlib: Add emacs variables to term.rs
1 parent 14c5900 commit c19a026

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/lib/term.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ fn reset(io::buf_writer writer) {
4848
}
4949

5050
fn color_supported() -> bool {
51+
5152
ret generic_os::getenv("TERM") == option::some[str]("xterm-color");
5253
}
5354

@@ -67,3 +68,11 @@ fn bg(io::buf_writer writer, u8 color) {
6768
}
6869
// export fg;
6970
// export bg;
71+
72+
// Local Variables:
73+
// fill-column: 78;
74+
// indent-tabs-mode: nil
75+
// c-basic-offset: 4
76+
// buffer-file-coding-system: utf-8-unix
77+
// compile-command: "make -k -C $RBUILD 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
78+
// End:

0 commit comments

Comments
 (0)