summary refs log tree commit diff stats
path: root/compiler/int128.nim
Commit message (Expand)AuthorAgeFilesLines
* use strictdefs for compiler (#22365)ringabout2023-08-061-2/+4
* fixes #21393 and misc style changes (#21419)Andreas Rumpf2023-02-241-19/+20
* Improve dollar int (#20737)Juan Carlos2022-11-031-1/+3
* int128.nim fix warnings (#20666)Juan Carlos2022-10-271-5/+4
* new move analyser2 (#20471)Andreas Rumpf2022-10-011-26/+2
* move assertions out of system (#19599)flywind2022-03-231-0/+3
* CIs: attempt to use csources_v1 (#16282)Andreas Rumpf2021-04-211-2/+2
* remove a temporary variable in int128.nim (#16935)flywind2021-02-041-35/+34
* move tests under the compiler directory to testament (#16096)flywind2020-11-251-187/+0
* Big compiler Cleanup (#14777)Clyybber2020-08-281-3/+3
* fix last remaining warning when building nim (`intVal should be Int128`) + mi...Timothee Cour2020-04-021-15/+15
* fix bug in int128 (#13403)Arne Döring2020-02-141-3/+86
* fixes #12783 [backport] (#12810)cooldome2019-12-051-6/+3
* Cosmetic compiler cleanup (#12718)Clyybber2019-11-281-7/+7
* remove two asserts in int128.nim (#12648) [backport]Miran2019-11-151-2/+0
* fixes #12514 (#12520) [backport]Arne Döring2019-10-271-2/+18
* fix #12332 (#12402) [backport]Arne Döring2019-10-101-1/+10
* fixes #12264 [backport] (#12302)Andreas Rumpf2019-09-301-0/+9
* makes more tests greenAndreas Rumpf2019-09-021-8/+0
* int128 on firstOrd, lastOrd and lengthOrd (#11701)Arne Döring2019-08-071-15/+176
* styleCheck: make the compiler and large parts of the stdlib compatible with -...Araq2019-07-101-2/+2
* introduce internal Int128 type, use it to fix case stmt checks (#11652)Arne Döring2019-07-051-0/+516
import Bar class TitleBar(Widget): old_cf = None old_keybuffer = None old_wid = None result = None throbber = ' ' def draw(self): if self.env.cf != self.old_cf or\ str(self.env.keybuffer) != str(self.old_keybuffer) or\ self.wid != self.old_wid: self.old_wid = self.wid self.old_cf = self.env.cf self._calc_bar() self._print_result(self.result) if self.wid > 2: self.color('in_titlebar', 'throbber') self.win.addnstr(self.y, self.wid - 2, self.throbber, 1) def _calc_bar(self): bar = Bar('in_titlebar') self._get_left_part(bar) self._get_right_part(bar) try: bar.shrink_by_cutting(self.wid) except ValueError: bar.shrink_by_removing(self.wid) self.result = bar.combine() def _get_left_part(self, bar): import socket, os bar.add(os.getenv('LOGNAME'), 'hostname', fixedsize=True) bar.add('@', 'hostname', fixedsize=True) bar.add(socket.gethostname(), 'hostname', fixedsize=True) for path in self.env.pathway: if path.islink: clr = 'link' else: clr = 'directory' bar.add(path.basename, clr) bar.add('/', clr, fixedsize=True) if self.env.cf is not None: bar.add(self.env.cf.basename, 'file', fixedsize=True) def _get_right_part(self, bar): kb = str(self.env.keybuffer) self.old_keybuffer = kb bar.addright(kb, 'keybuffer', fixedsize=True) bar.addright(' ', 'space', fixedsize=True) def _print_result(self, result): import _curses self.win.move(0, 0) for part in result: self.color(*part.lst) self.addstr(part.string) self.color_reset()