robik / ConsoleD

Because colors are awesome.
63 stars 11 forks source link

Breaks during build #42

Open Ecsodikas opened 3 years ago

Ecsodikas commented 3 years ago

I use DUB version 1.26.1, DMD64 version 2.097.2 and all I did was dub init a new project and adding consoled as a dependency.

...
"dependencies": {
    "consoled": "~>1.0.4"
},
...

After running dub build I get the following error message:

../../.dub/packages/consoled-1.0.4/consoled/source/terminal.d(291,14): Error: Implicit string concatenation is error-prone and disallowed in D
../../.dub/packages/consoled-1.0.4/consoled/source/terminal.d(291,14):        Use the explicit syntax instead (concatenating literals is `@nogc`): "\x0a# Generic VT entry.\x0avg|vt-generic|Generic VT entries:\\\x0a\x09:bs:mi:ms:pt:xn:xo:it#8:\\\x0a\x09:RA=\\E[?7l:SA=\\E?7h:\\\x0a\x09:bl=^G:cr=^M:ta=^I:\\\x0a\x09:cm=\\E[%i%d;%dH:\\\x0a\x09:le=^H:up=\\E[A:do=\\E[B:nd=\\E[C:\\\x0a\x09:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:DO=\\E[%dB:\\\x0a\x09:ho=\\E[H:cl=\\E[H\\E[2J:ce=\\E[K:cb=\\E[1K:cd=\\E[J:sf=\\ED:sr=\\EM:\\\x0a\x09:ct=\\E[3g:st=\\EH:\\\x0a\x09:cs=\\E[%i%d;%dr:sc=\\E7:rc=\\E8:\\\x0a\x09:ei=\\E[4l:ic=\\E[@:IC=\\E[%d@:al=\\E[L:AL=\\E[%dL:\\\x0a\x09:dc=\\E[P:DC=\\E[%dP:dl=\\E[M:DL=\\E[%dM:\\\x0a\x09:so=\\E[7m:se=\\E[m:us=\\E[4m:ue=\\E[m:\\\x0a\x09:mb=\\E[5m:mh=\\E[2m:md=\\E[1m:mr=\\E[7m:me=\\E[m:\\\x0a\x09:sc=\\E7:rc=\\E8:kb=\\177:\\\x0a\x09:ku=\\E[A:kd=\\E[B:kr=\\E[C:kl=\\E[D:\x0a\x0a\x0a# Slackware 3.1 linux termcap entry (Sat Apr 27 23:03:58 CDT 1996):\x0alx|linux|console|con80x25|LINUX System Console:\\\x0a        :do=^J:co#80:li#25:cl=\\E[H\\E[J:sf=\\ED:sb=\\EM:\\\x0a        :le=^H:bs:am:cm=\\E[%i%d;%dH:nd=\\E[C:up=\\E[A:\\\x0a        :ce=\\E[K:cd=\\E[J:so=\\E[7m:se=\\E[27m:us=\\E[36m:ue=\\E[m:\\\x0a        :md=\\E[1m:mr=\\E[7m:mb=\\E[5m:me=\\E[m:is=\\E[1;25r\\E[25;1H:\\\x0a        :ll=\\E[1;25r\\E[25;1H:al=\\E[L:dc=\\E[P:dl=\\E[M:\\\x0a        :it#8:ku=\\E[A:kd=\\E[B:kr=\\E[C:kl=\\E[D:kb=^H:ti=\\E[r\\E[H:\\\x0a        :ho=\\E[H:kP=\\E[5~:kN=\\E[6~:kH=\\E[4~:kh=\\E[1~:kD=\\E[3~:kI=\\E[2~:\\\x0a        :k1=\\E[[A:k2=\\E[[B:k3=\\E[[C:k4=\\E[[D:k5=\\E[[E:k6=\\E[17~:\\\x0a\x09:F1=\\E[23~:F2=\\E[24~:\\\x0a        :k7=\\E[18~:k8=\\E[19~:k9=\\E[20~:k0=\\E[21~:K1=\\E[1~:K2=\\E[5~:\\\x0a        :K4=\\E[4~:K5=\\E[6~:\\\x0a        :pt:sr=\\EM:vt#3:xn:km:bl=^G:vi=\\E[?25l:ve=\\E[?25h:vs=\\E[?25h:\\\x0a        :sc=\\E7:rc=\\E8:cs=\\E[%i%d;%dr:\\\x0a        :r1=\\Ec:r2=\\Ec:r3=\\Ec:\x0a\x0a# Some other, commonly used linux console entries.\x0alx|con80x28:co#80:li#28:tc=linux:\x0alx|con80x43:co#80:li#43:tc=linux:\x0alx|con80x50:co#80:li#50:tc=linux:\x0alx|con100x37:co#100:li#37:tc=linux:\x0alx|con100x40:co#100:li#40:tc=linux:\x0alx|con132x43:co#132:li#43:tc=linux:\x0a\x0a# vt102 - vt100 + insert line etc. VT102 does not have insert character.\x0av2|vt102|DEC vt102 compatible:\\\x0a\x09:co#80:li#24:\\\x0a\x09:ic@:IC@:\\\x0a\x09:is=\\E[m\\E[?1l\\E>:\\\x0a\x09:rs=\\E[m\\E[?1l\\E>:\\\x0a\x09:eA=\\E)0:as=^N:ae=^O:ac=aaffggjjkkllmmnnooqqssttuuvvwwxx:\\\x0a\x09:ks=:ke=:\\\x0a\x09:k1=\\EOP:k2=\\EOQ:k3=\\EOR:k4=\\EOS:\\\x0a\x09:tc=vt-generic:\x0a\x0a# vt100 - really vt102 without insert line, insert char etc.\x0avt|vt100|DEC vt100 compatible:\\\x0a\x09:im@:mi@:al@:dl@:ic@:dc@:AL@:DL@:IC@:DC@:\\\x0a\x09:tc=vt102:\x0a\x0a\x0a# Entry for an xterm. Insert mode has been disabled.\x0avs|xterm|xterm-color|xterm-256color|vs100|xterm terminal emulator (X Window System):\\\x0a\x09:am:bs:mi@:km:co#80:li#55:\\\x0a\x09:im@:ei@:\\\x0a\x09:cl=\\E[H\\E[J:\\\x0a\x09:ct=\\E[3k:ue=\\E[m:\\\x0a\x09:is=\\E[m\\E[?1l\\E>:\\\x0a\x09:rs=\\E[m\\E[?1l\\E>:\\\x0a\x09:vi=\\E[?25l:ve=\\E[?25h:\\\x0a\x09:eA=\\E)0:as=^N:ae=^O:ac=aaffggjjkkllmmnnooqqssttuuvvwwxx:\\\x0a\x09:kI=\\E[2~:kD=\\E[3~:kP=\\E[5~:kN=\\E[6~:\\\x0a\x09:k1=\\EOP:k2=\\EOQ:k3=\\EOR:k4=\\EOS:k5=\\E[15~:\\\x0a\x09:k6=\\E[17~:k7=\\E[18~:k8=\\E[19~:k9=\\E[20~:k0=\\E[21~:\\\x0a\x09:F1=\\E[23~:F2=\\E[24~:\\\x0a\x09:kh=\\E[H:kH=\\E[F:\\\x0a\x09:ks=:ke=:\\\x0a\x09:te=\\E[2J\\E[?47l\\E8:ti=\\E7\\E[?47h:\\\x0a\x09:tc=vt-generic:\x0a\x0a\x0a#rxvt, added by me\x0arxvt|rxvt-unicode:\\\x0a\x09:am:bs:mi@:km:co#80:li#55:\\\x0a\x09:im@:ei@:\\\x0a\x09:ct=\\E[3k:ue=\\E[m:\\\x0a\x09:is=\\E[m\\E[?1l\\E>:\\\x0a\x09:rs=\\E[m\\E[?1l\\E>:\\\x0a\x09:vi=\\E[?25l:\\\x0a\x09:ve=\\E[?25h:\\\x0a\x09:eA=\\E)0:as=^N:ae=^O:ac=aaffggjjkkllmmnnooqqssttuuvvwwxx:\\\x0a\x09:kI=\\E[2~:kD=\\E[3~:kP=\\E[5~:kN=\\E[6~:\\\x0a\x09:k1=\\E[11~:k2=\\E[12~:k3=\\E[13~:k4=\\E[14~:k5=\\E[15~:\\\x0a\x09:k6=\\E[17~:k7=\\E[18~:k8=\\E[19~:k9=\\E[20~:k0=\\E[21~:\\\x0a\x09:F1=\\E[23~:F2=\\E[24~:\\\x0a\x09:kh=\\E[7~:kH=\\E[8~:\\\x0a\x09:ks=:ke=:\\\x0a\x09:te=\\E[2J\\E[?47l\\E8:ti=\\E7\\E[?47h:\\\x0a\x09:tc=vt-generic:\x0a\x0a\x0a# Some other entries for the same xterm.\x0av2|xterms|vs100s|xterm small window:\\\x0a\x09:co#80:li#24:tc=xterm:\x0avb|xterm-bold|xterm with bold instead of underline:\\\x0a\x09:us=\\E[1m:tc=xterm:\x0avi|xterm-ins|xterm with insert mode:\\\x0a\x09:mi:im=\\E[4h:ei=\\E[4l:tc=xterm:\x0a\x0aEterm|Eterm Terminal Emulator (X11 Window System):\\\x0a        :am:bw:eo:km:mi:ms:xn:xo:\\\x0a        :co#80:it#8:li#24:lm#0:pa#64:Co#8:AF=\\E[3%dm:AB=\\E[4%dm:op=\\E[39m\\E[49m:\\\x0a        :AL=\\E[%dL:DC=\\E[%dP:DL=\\E[%dM:DO=\\E[%dB:IC=\\E[%d@:\\\x0a        :K1=\\E[7~:K2=\\EOu:K3=\\E[5~:K4=\\E[8~:K5=\\E[6~:LE=\\E[%dD:\\\x0a        :RI=\\E[%dC:UP=\\E[%dA:ae=^O:al=\\E[L:as=^N:bl=^G:cd=\\E[J:\\\x0a        :ce=\\E[K:cl=\\E[H\\E[2J:cm=\\E[%i%d;%dH:cr=^M:\\\x0a        :cs=\\E[%i%d;%dr:ct=\\E[3g:dc=\\E[P:dl=\\E[M:do=\\E[B:\\\x0a        :ec=\\E[%dX:ei=\\E[4l:ho=\\E[H:i1=\\E[?47l\\E>\\E[?1l:ic=\\E[@:\\\x0a        :im=\\E[4h:is=\\E[r\\E[m\\E[2J\\E[H\\E[?7h\\E[?1;3;4;6l\\E[4l:\\\x0a        :k1=\\E[11~:k2=\\E[12~:k3=\\E[13~:k4=\\E[14~:k5=\\E[15~:\\\x0a        :k6=\\E[17~:k7=\\E[18~:k8=\\E[19~:k9=\\E[20~:kD=\\E[3~:\\\x0a        :kI=\\E[2~:kN=\\E[6~:kP=\\E[5~:kb=^H:kd=\\E[B:ke=:kh=\\E[7~:\\\x0a        :kl=\\E[D:kr=\\E[C:ks=:ku=\\E[A:le=^H:mb=\\E[5m:md=\\E[1m:\\\x0a        :me=\\E[m\\017:mr=\\E[7m:nd=\\E[C:rc=\\E8:\\\x0a        :sc=\\E7:se=\\E[27m:sf=^J:so=\\E[7m:sr=\\EM:st=\\EH:ta=^I:\\\x0a        :te=\\E[2J\\E[?47l\\E8:ti=\\E7\\E[?47h:ue=\\E[24m:up=\\E[A:\\\x0a        :us=\\E[4m:vb=\\E[?5h\\E[?5l:ve=\\E[?25h:vi=\\E[?25l:\\\x0a        :ac=" ~ "aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~:\x0a\x0a# DOS terminal emulator such as Telix or TeleMate.\x0a# This probably also works for the SCO console, though it's incomplete.\x0aan|ansi|ansi-bbs|ANSI terminals (emulators):\\\x0a\x09:co#80:li#24:am:\\\x0a\x09:is=:rs=\\Ec:kb=^H:\\\x0a\x09:as=\\E[m:ae=:eA=:\\\x0a\x09:ac=0\\333+\\257,\\256.\\031-\\030a\\261f\\370g\\361j\\331k\\277l\\332m\\300n\\305q\\304t\\264u\\303v\\301w\\302x\\263~\\025:\\\x0a\x09:kD=\\177:kH=\\E[Y:kN=\\E[U:kP=\\E[V:kh=\\E[H:\\\x0a\x09:k1=\\EOP:k2=\\EOQ:k3=\\EOR:k4=\\EOS:k5=\\EOT:\\\x0a\x09:k6=\\EOU:k7=\\EOV:k8=\\EOW:k9=\\EOX:k0=\\EOY:\\\x0a\x09:tc=vt-generic:\x0a\x0a\x09"
/usr/bin/dmd failed with exit code 1.

I'd fix this error myself because I think it is broken because of an earlier deprecation message, but I actually have no idea what's going on there.

So if someone could tell me how to fix this, I'd happy to do so.

adamdruppe commented 3 years ago

This repo isn't really maintained anymore. The terminal.d file comes from my lib though

adamdruppe commented 3 years ago

https://github.com/adamdruppe/arsd/blob/master/terminal.d

You could just replace this file and probably make this repo work again, but you're better off just using my thing directly. arsd-official:terminal on dub.